解决方案"System.InvalidOperationException: 配置有 NoSecurityChanges 标志的 AppDomainManager 修改了 AppDomain 的安全状
2013-12-23 15:55
579 查看
PS:其实应该就是devenv.exe.config这个文件,莫名其妙的出现这个问题,搜索了下有说是改msbuild.exe.config的,也有说是改.csproj的,我都试了只有这个管用
原贴地址:http://www.cnblogs.com/crazycxy/archive/2012/12/05/2802399.html
if you have
"The "ResolveComReference" task could not be instantiated from "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
this error , most probably you've modified devenv.exe.config and added there
<NetFx40_LegacySecurityPolicy enabled="true"/>
, am I right?
If this is the case, do this:
1) remove <NetFx40_LegacySecurityPolicy enabled="true"/> from devenv.exe.config
2) re-open VS, compile your project. It will generate you all interops with no problems.
3) close VS, add <NetFx40_LegacySecurityPolicy enabled="true"/> again if you need it.
4) open VS, open your project. Your references will be fine now.
原贴地址:http://www.cnblogs.com/crazycxy/archive/2012/12/05/2802399.html
if you have
"The "ResolveComReference" task could not be instantiated from "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
this error , most probably you've modified devenv.exe.config and added there
<NetFx40_LegacySecurityPolicy enabled="true"/>
, am I right?
If this is the case, do this:
1) remove <NetFx40_LegacySecurityPolicy enabled="true"/> from devenv.exe.config
2) re-open VS, compile your project. It will generate you all interops with no problems.
3) close VS, add <NetFx40_LegacySecurityPolicy enabled="true"/> again if you need it.
4) open VS, open your project. Your references will be fine now.
相关文章推荐
- 解决方案"System.InvalidOperationException: 配置有 NoSecurityChanges 标志的 AppDomainManager 修改了 AppDomain 的安全状
- 错误 1 “GenerateResource”任务意外失败。 System.InvalidOperationException: 配置有 NoSecurityChanges 标志的 AppDomain
- “System.ServiceModel.DomainServices.Client.DomainOperationException:查询"XXX"load操作失败,远程服务器返回了错误:NoFound.……”解决方法
- C# 读取app.config配置文件 节点键值,提示 "System.TypeInitializationException 类型初始值设定项引发异常" 错误的解决方案
- java.lang.ClassNotFoundException: Didn't find class "com.yuanyuan.baseapp.domain.TestActivity"
- [System.InvalidOperationException] = {"阅读器关闭时尝试调用 MetaData 无效。"}
- "System.Data.SqlServerCe.SqlCeException: 数据库文件大于配置的最大数据库大小。该设置仅在第一次并发数据库连接后生效"解决方案
- 关于note2等(Android4.1版本)以上无法启动支付宝的问题"java.security.spec.InvalidKeySpecException"
- tomcat配置https启动出现"No Certificate file specified or invalid file format"异常
- System.ArgumentException: 回发或回调参数无效。在配置中使用 < pages enableEventValidation="true"/>
- 配置IIS服务器的时候,出现System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "ERP"。登录失败。
- 关于note2等(Android4.1版本)以上无法启动支付宝的问题"java.security.spec.InvalidKeySpecException"
- 异常[System.InvalidOperationException: 未指定'xxx'的定制类型映射或该映射]解决方案
- System.InvalidOperationException: 集合已修改;可能无法执行枚举操作。
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- Fix: "Sys.InvalidOperationException: Two components with the same id
- 提交appStroe 报错 "Missing or invalid signature. The bundle '***' at bundle path 'Payload***解决方案
- C# 读取app.config配置文件 节点键值,提示 "配置系统未能初始化" 错误的解决方案
- System.InvalidOperationException: 集合已修改;可能无法执行枚举操作。
- tomcat配置https启动出现"No Certificate file specified or invalid file format"异常