Restricted Permission AppDomain Grant Set Issue

a 夏天 提交于 2019-12-05 16:12:14

This error usually happens when you try to load an assembly into an existing AppDomain two times with different set of permissions. The $1M question is what assembly it is, and what AppDomain.

I don't have a complete answer to that, but you can look into the following things:

  • What sandboxed assemblies (if any) get loaded into your main app domain because of marshalling?
  • If you have your own server code, does it specify LoadOptimizationAttribute?
  • Does your development server and your production server use different isolation levels?
  • Are there any other applications on the production server that share some of your assemblies?

You can also try to install remote debugging runtime on the server, attach debugger to the process that hosts your application, and check directly what gets loaded there in what domain. You may need SOS debugging extensions for that.

http://msdn.microsoft.com/en-us/library/bb190764.aspx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!