如何摆脱安全异常? [英] How to get rid of security exception?
问题描述
我在本地工作站上启动了.Net服务器端程序,但很快就会引发安全异常。我在网上搜索了答案,但没有找到/工作的快速修复。我只想运行我的程序。如何摆脱异常?我完全相信程序,因为它的我的。
I start a .Net server side program on my local workstation, but soon it throws a security exception. I searched the web for answers, but no quick fix was found / worked. I just want to run my program. How do I get rid of the exception? I fully trust the program, because its mine.
编辑:哦,是的,我从映射到我自己的本地驱动器的映射文件夹运行程序文件夹结构的清晰度。感谢您的答案,我明天尝试直接从我的驱动器运行。
Oh, yes, I do run the program from a mapped folder that is mapped to my own local drive for the sake of clarity of folder structures. Thanks for the answers, I try tomorrow to run it directly from my drive.
编辑:当我直接使用我的驱动器,它的工作。
When I use directly my drive, it works.
推荐答案
。NET 3.5 SP1更好地支持在本地Intranet上运行应用程序。
如果无法定位3.5 SP1,您可以将运行应用程序的共享映射到本地驱动器,并将使用CasPol将映射的驱动器设置为完全信任的位置。
If you can't target 3.5 SP1, you can map the share you're running the application from to a local drive and use CasPol to set that mapped drive to a fully trusted location.
这篇关于如何摆脱安全异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!