EDN Admin
Well-known member
An unhandled exception of type System.InvalidOperationException occurred in Education.exe<br/>
<br/>
Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Mixed mode assembly is built against version v1.1.4322 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration
information.
What should I do?
Another thread mentioned altering my app.config from:
<?xml version="1.0" encoding="utf-8" ?><br/>
<configuration><br/>
<startup><br/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /><br/>
</startup><br/>
</configuration>
<br/>
<br/>
to:
<?xml version="1.0" encoding="utf-8" ?><br/>
<configuration><br/>
<startup useLegacyV2RuntimeActivationPolicy="true <br/>
<supportedRuntime version="v4.0"/><br/>
</startup><br/>
</configuration>
But that then gave me this error:
Managed Debugging Assistant LoaderLock has detected a problem in C:UsersAdminDocumentsVisual Studio 2012ProjectsEducatReplacementbinDebugEducation.vshost.exe.<br/>
<br/>
Additional Information: DLL C:WindowsassemblyGACMicrosoft.DirectX1.0.2902.0__31bf3856ad364e35Microsoft.DirectX.dll is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function
since doing so can cause the application to hang.<br/>
<br/>
<br/>
<br/>
If there is a handler for this exception, the program may be safely continued.
View the full article
<br/>
Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Mixed mode assembly is built against version v1.1.4322 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration
information.
What should I do?
Another thread mentioned altering my app.config from:
<?xml version="1.0" encoding="utf-8" ?><br/>
<configuration><br/>
<startup><br/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /><br/>
</startup><br/>
</configuration>
<br/>
<br/>
to:
<?xml version="1.0" encoding="utf-8" ?><br/>
<configuration><br/>
<startup useLegacyV2RuntimeActivationPolicy="true <br/>
<supportedRuntime version="v4.0"/><br/>
</startup><br/>
</configuration>
But that then gave me this error:
Managed Debugging Assistant LoaderLock has detected a problem in C:UsersAdminDocumentsVisual Studio 2012ProjectsEducatReplacementbinDebugEducation.vshost.exe.<br/>
<br/>
Additional Information: DLL C:WindowsassemblyGACMicrosoft.DirectX1.0.2902.0__31bf3856ad364e35Microsoft.DirectX.dll is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function
since doing so can cause the application to hang.<br/>
<br/>
<br/>
<br/>
If there is a handler for this exception, the program may be safely continued.
View the full article