-
Notifications
You must be signed in to change notification settings - Fork 135
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
Could not load file or assembly System.CodeDom #186
Comments
Thanks for reporting this, @swASO. To narrow down the issue to a specific release, can you test with release 0.4.1? That was the last release before 0.5.0. |
v0.5.0 -> 👎 |
@swASO: Thanks for the code sample. We were able to reproduce the issue. |
It looks like the error is caused by a This issue in their repo seems to be related. In the short term, you can avoid the exception by skipping the MsgPack assembly in the LINQ query: var allTypes = AppDomain.CurrentDomain
.GetAssemblies()
.Where(s => !s.FullName.StartsWith("Microsoft") &&
!s.FullName.StartsWith("System.") &&
!s.FullName.StartsWith("MsgPack")) // skip MsgPack
.Select(s => s.GetTypes() |
You can repro the issue with minimal code and no reference to Datadog assemblies: string assemblyString = "MsgPack, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a2625990d5dc0167";
Type[] types = Assembly.Load(assemblyString).GetTypes(); |
I created this PR so it can be fixed in the next release of their library. |
workaround works! thanks |
I'm closing this since there is nothing else for us to do. |
Describe the bug
I Updated from 0.3.1-beta to 0.5-beta and we got a exception in all our services ( linux/windows )
Runtime environment (please complete the following information):
Additional context
i dont know what the exact problem is, but i think this lines below does produce the error
with 0.3.1-beta everythings works fine ( already did the downgrade ), with 0.5-beta i can reproduce the exception above
The text was updated successfully, but these errors were encountered: