Skip to content
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

System.TypeLoadException:“Could not load type 'OpenTelemetry.Internal.ConfigurationExtensions' from assembly 'OpenTelemetry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7bd6737fe5b67e3c'.” #5564

Closed
PSC-F opened this issue Apr 24, 2024 · 2 comments

Comments

@PSC-F
Copy link

PSC-F commented Apr 24, 2024

need upgrade to 1.8.1

@CodeBlanch
Copy link
Member

@PSC-F What OTel package versions are you using? Are you mixing prerelease & stable versions? My guess is this is the same as #5477 which should be fixed in the next release cycle.

@maxgolov
Copy link

maxgolov commented Apr 24, 2024

I see another very similar issue. I believe it has the same root cause with another piece of it on .NET 8 and with v1.8.1 . I believe the best fix would be to start updating AssemblyVersion whenever your API/ABI breaks. That will address all ambiguities with the nuget/build system DLL version resolution. Otherwise the build system gets confused, esp. with many nuget packages in the build potentially referencing different versions of OTel.. You'd get the build system polluted with different binaries. Binary incompatible, but all versioned with AssemblyVersion=v1.0.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants