卸载安装程序时出现问题



我在。net framework 3.5中创建了应用程序&在。net framework 4.0中创建安装项目。我把它安装在有vs2010的机器上。但是在卸载安装程序时,它显示以下异常-

Error 1001. An exception occurred while uninstalling. This exception will be ignored & the uninstall will continuw. However , the application might not be fully uninstalled after the uninstall is complete. -> Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configration information.

我在设置中添加了一些。net 2.0 dll以及。net 4.0 dll。这会产生问题吗?但我不这么认为,因为我在更高的版本上运行。那么它是如何抛出错误的呢?

如何解决这个问题?

谢谢

您可以通过将包含以下内容的.config文件添加到允许混合模式组装的项目中来解决这个问题

这是它想要的"附加配置信息":

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>

最新更新