This happens when .NET version 4 assemblies are used (it works fine with .NET version 2 assemblies) and when AutomaticProcessingMode=B (Background mode).
This is because the Microsoft® .NET Framework Common Language Runtime (CLR) version loads assemblies from the MgxpaRuntime.exe process. However, if the automatic processing is done in Background mode, the Runtime engine is not loaded. So, you will not get the CLR version.
The API that is used to load the assemblies needs this version and if a null version is sent to to it, it loads assemblies lower than 4.
Solution 1:
Add the following to the MgxpaStudio.exe.config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727" />
</startup>
Solution 2:
Use a .NET 3.5 framework dll instead of the .NET 4.0 framework dll.
|