-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTLP exporter failed on .NET Framework #1858
Comments
Hi @muhaook - we are working on an automated fix via #1646. for the time being, please, try the following workaround: add a binding redirect to the NuGet package For my reference are you using an old csproj style or the SDK csproj? The former is typically used for ASP.NET apps on .NET Framework. |
Thanks @pjanotti , I'll try the workaround. Our sample is running on ASP.NET (Webform and MVC)+ WCF, the csproj is old style, not a SDK csproj. |
Hi @pjanotti , the workround works for most of my samples, but failed for one sample. The failed sample is hosted by IIS and targets at .net framework 4.6.2. Attached please find its web.config (changed to .txt so as to be able to upload)
|
@muhaook, could you please check https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/v0.5.1-beta.3? There is improvement related to loading different library version on .NET Framework. Please let us know if it help or no. |
@muhaook please just make sure to use |
Hi @Kielek @pellared , with v0.5.1-beta.3, I can not reproduce this issue, even without registering netfx assemblies in GAC. I have 2 quick questions about registering / unregistering assemblies in GAC:
for info, I used this command to register assemblies in GAC:
and I used command below to unregister assemblies from GAC:
before auto-instrument install, my GAC: |
Same issue on .NET Framework 4.8 Installed OTel packages: My GRPC packages are:
That workaround mentioned here does not work for me unfortunately. |
Bug Report
Symptom
OTLP exporter failed on .Net framework. I found below exception in log:
I am testing dotnet auto-instrumentation 0.5.1-beta.2. OTLP exporter on .Net works well.
as per my previous testing, OTLP exporter on 0.5.0 worked as well. so looks like this is a regression.
dotnet auto-instrumentation 0.5.1-beta.2 uses otel SDK 1.4.0 beta.3; while auto-instrumentation 0.5.0 uses otel SDK 1.3.1.
Runtime environment:
The text was updated successfully, but these errors were encountered: