PC Review


Reply
Thread Tools Rate Thread

SecurityException with UNC

 
 
Chris Thunell
Guest
Posts: n/a
 
      25th Jul 2006
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 Removed)


 
Reply With Quote
 
 
 
 
Jim Wooley
Guest
Posts: n/a
 
      26th Jul 2006
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SecurityException when calling DLL while using a UNC share Steve Microsoft ASP .NET 0 9th May 2007 04:41 PM
SecurityException with UNC Chris Thunell Microsoft Dot NET 0 25th Jul 2006 10:58 PM
valid syntax for copy from unc to unc LarryG Microsoft Windows 2000 CMD Promt 3 3rd Nov 2003 09:47 PM
UNC File copy MUCH FASTER than mapped UNC drive copy? NTNEWS Microsoft Windows 2000 0 17th Sep 2003 07:01 AM
UNC File copy MUCH FASTER than mapped UNC drive copy? NTNEWS Microsoft Windows 2000 File System 0 17th Sep 2003 07:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 AM.