Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
2012-11-27 20:38
726 查看
1.问题描述:现在.NET版本一般是4.0,本人在编译低版本的.NET程序在4.0上运行时出现了“Mixed mode assembly is built against version 'v1.1.4322' of the runtime and......”错误——具体是这样的,运行程序没有任何反应,Debug的时候报这个错误。
2.解决方案:对于这个问题,Microsoft的说法是:http://blogs.msdn.com/b/jomo_fisher/archive/2009/11/17/f-scripting-net-4-0-and-mixed-mode-assemblies.aspx,文中已经提到了解决方案:
在App.config文件中添加如下内容:
[html]
view plaincopy
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
3.解决方案续:什么?!App.config文件在哪?这里说了:C#配置App.config
简言之如下:
右击项目名称,选择“添加”→“添加新建项”,在出现的“添加新项”对话框中,选择“添加应用程序配置文件”;如果项目以前没有配置文件,则默认的文件名称为“app.config”,单击“确定”。出现在设计器视图中的app.config文件为:
[html]
view plaincopy
<?xmlversionxmlversion="1.0"encoding="utf-8" ?>
<configuration>
</configuration>
将要添加的内容加到<configuration> 与 </configuration>之间就可以了。
2.解决方案:对于这个问题,Microsoft的说法是:http://blogs.msdn.com/b/jomo_fisher/archive/2009/11/17/f-scripting-net-4-0-and-mixed-mode-assemblies.aspx,文中已经提到了解决方案:
在App.config文件中添加如下内容:
[html]
view plaincopy
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
3.解决方案续:什么?!App.config文件在哪?这里说了:C#配置App.config
简言之如下:
右击项目名称,选择“添加”→“添加新建项”,在出现的“添加新项”对话框中,选择“添加应用程序配置文件”;如果项目以前没有配置文件,则默认的文件名称为“app.config”,单击“确定”。出现在设计器视图中的app.config文件为:
[html]
view plaincopy
<?xmlversionxmlversion="1.0"encoding="utf-8" ?>
<configuration>
</configuration>
将要添加的内容加到<configuration> 与 </configuration>之间就可以了。
相关文章推荐
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- 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 info
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- .NET Business Connector mode assembly is built against version 'v2.0.50727' of the runtime
- VS2012载入DLL编译出现试图载入格式不对的程序; 以及执行出现Mixed mode assembly is built against version 'v2.0.50727' of the
- C#中遇到dll与.net 4.0不兼容,Mixed mode assembly is built against version 'v2.0.50727' 的解决办法
- system.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727'...问题解决方案
- Mixed mode assembly is built against version 'v2.0.50727' 解决方案
- VS2012加载DLL编译出现试图加载格式不正确的程序; 以及运行出现Mixed mode assembly is built against version 'v2.0.50727' of the
- Mixed mode assembly is built against ver
- VS2008工程移植到2010的问题'system.io.fileloadexception was unhandled message=mixed mode assembly is built ag
- assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
- How to implement the built in effects of DirectX.DirectSound
- Teddy's Aspect Weaver Version 0.3 with Great Updating and Fixing, Especially the Implementing of Getting Runtime Method Context Info and Method Arguments in MSIL Level
- SVN:is not under version control and is not part of the commit,yet its child
- It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing ___Error Installing APK