- List of NuGet packages and version that you are using:
- Runtime version (e.g. net461, net48, netcoreapp2.1, netcoreapp3.1, etc. You can find this information from the
*.csproj file):
- Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.):
Describe the bug
After installing 3.0.0 I see hundreds of these exceptions:
System.MethodAccessException: 'Attempt by method 'Serilog.Sinks.ApplicationInsights.TelemetryConverters.TelemetryConverterBase.PopulateTelemetryFromLogEvent(Serilog.Events.LogEvent, Microsoft.ApplicationInsights.Channel.ITelemetry)' to access method 'Microsoft.ApplicationInsights.DataContracts.TelemetryContext.get_Component()' failed.'
and no traces show up in Azure.
To Reproduce
I noticed this in 2 Blazor projects. Updating the NuGet caused the failures. I am using SeriLog and a ApplicationsIndights sink.
For Immediate Support
For immediate support relating to the Application Insights .NET SDK we encourage you to file an Azure Support Request with Microsoft Azure instead of filing a GitHub Issue in this repository.
You can do so by going online to the Azure portal and submitting a support request. Access to subscription management and billing support is included with your Microsoft Azure subscription, and technical support is provided through one of the Azure Support Plans. For step-by-step guidance for the Azure portal, see How to create an Azure support request. Alternatively, you can create and manage your support tickets programmatically using the Azure Support ticket REST API
*.csprojfile):Describe the bug
After installing 3.0.0 I see hundreds of these exceptions:
System.MethodAccessException: 'Attempt by method 'Serilog.Sinks.ApplicationInsights.TelemetryConverters.TelemetryConverterBase.PopulateTelemetryFromLogEvent(Serilog.Events.LogEvent, Microsoft.ApplicationInsights.Channel.ITelemetry)' to access method 'Microsoft.ApplicationInsights.DataContracts.TelemetryContext.get_Component()' failed.'
and no traces show up in Azure.
To Reproduce
I noticed this in 2 Blazor projects. Updating the NuGet caused the failures. I am using SeriLog and a ApplicationsIndights sink.
For Immediate Support
For immediate support relating to the Application Insights .NET SDK we encourage you to file an Azure Support Request with Microsoft Azure instead of filing a GitHub Issue in this repository.
You can do so by going online to the Azure portal and submitting a support request. Access to subscription management and billing support is included with your Microsoft Azure subscription, and technical support is provided through one of the Azure Support Plans. For step-by-step guidance for the Azure portal, see How to create an Azure support request. Alternatively, you can create and manage your support tickets programmatically using the Azure Support ticket REST API