今天使用.NET Business Connector更新AX数据的时候出现下面的错误:
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.
解决办法:
- In Solution Explorer, double-click the app.config file and update the following configuration settings.
-
<startup useLegacyV2RuntimeActivationPolicy=”true”> <supportedRuntime version “v4.0” />
-
On the File menu, click Save app.config.
更多参考: https://msdn.microsoft.com/en-us/library/cc197114.aspx