.Net 4 CAS - Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Action: Demand

試著忘記壹切 提交于 2019-12-10 19:44:47

问题


My build server runs a SpecFlow acceptance test DLL through Gallio.

This calls a WCF service and performs our acceptance tests.

Running locally works fine.

However on the build server (even with Cruise Control running under my account)

I keep getting

System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Action: Demand

This build server is running .Net 4.

Is there anyway to switch CAS off?

Thanks

来源:https://stackoverflow.com/questions/8222420/net-4-cas-request-for-the-permission-of-type-system-net-webpermission-syste

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