昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期三, 十一月 18, 2009

System.SecurityException with network drive

I put my vs2005 project files in a network drive (mounted by net use command). Then I encounter a problem of security exception. Visual studio gave me a security warning when I opened the project. It also brought trouble when I was trying to debug (F5).
 
The solution for this is adding the network drive as a trusted location.
 
caspol -m -ag 1 -url file://H:\* FullTrust
 
You may need to open Visual Studio 2005 Command Prompt to execute this command, otherwise, caspol may not be found.
 

--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.