Easier as the name really is. I updated the solution from .Net 2-3.5 to .Net 4, it worked fine, I installed VS 2012 and .Net 4.5 with it, and now I get an ExecutionEngineException when trying to reflect CustomAttributes attributes from a dynamically generated DLL using the following code:
Assembly assembly = Assembly.LoadWithPartialName("DavesNamespace.Custom"); var attributes = assembly.GetCustomAttributes(typeof(ChecksumAttribute), true);
I get an exception with the type specified for GetCustomAttributes or without it, but only when it throws an exception, the assembly is loaded successfully, and I can actually view the CustomAttributes collection if I insert a breakpoint.
The original version of .Net 2-3.5 still works since the installation of vs2012.
Any help is much appreciated, I found some vs2012 related questions ending with ExecutionEngineExceptions that look online but nothing with an answer. The problem can be solved by removing VS2012 and .Net 4.5, but since we intend to move to the VS2013 company when it was released this is not really a solution.
EDIT: Got an error that occurs in an example application that does just that, and an exception is thrown anyway, even if the application is created with a setting of 4.5
Stack trace added in comments below (this is null)
mckjerral
source share