> I'm using VStudio2005 and working with a VB.Net windows form
> application. The project is located in the My Documents folder...
> under a UNC shared path.
>
> \\fs1\users\cthunell\My Documents\My Projects (something like this)
>
> I'm getting a SecurityException was unhandled.. Request for the
> Permission of type 'System.Secuirty.Permissions.SecurityPermision'...
> when i try to debug the application.
>
> if i copy the project to the C drive of my computer - the project
> debugs fine and starts right up.
When accessing the application through a UNC (even if the location is on
your local computer), the runtime asserts that you are running on the intranet
zone. Due to Code Access Security (CAS) settings, it restricts what kinds
of things your code can do to help prevent against malivent code. For example,
it may block access to the file store, registry settings, database connections,
etc. You can modify the security setting for your application using a number
of different methods. Read up on CAS in order to handle this kind of deployment
scheme. You can start here:
http://msdn.microsoft.com/library/de...sssecurity.asp
Jim Wooley
http://devauthority.com/blogs/jwooley/default.asp