SecurityException with UNC

C

Chris Thunell

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.

HELP!!!!
Thanks in advance,
Chris Thunell
(e-mail address removed)
 
J

Jim Wooley

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/d...n-us/cpguide/html/cpconcodeaccesssecurity.asp

Jim Wooley
http://devauthority.com/blogs/jwooley/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top