- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I noticed an System.TypeInitializationException in one of our dlls from our AutoCAD extension.
The error message is:
TypeInitializationException: The type initializer for 'xxx' threw an exception. Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
I found out that the entry
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
in the acad.exe.config file has been removed with AutoCAD 2020. If I add these lines again into the acad.exe.config I get no error message and everything works like before.
What is the reason that this has been removed?
Can I add this entry again without causing problems?
Thank you for your help.
Best regards,
Alex
Solved! Go to Solution.