SecurityException with UNC

Discussion in 'Microsoft VB .NET' started by Chris Thunell, Jul 25, 2006.

  1. 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
     
    Chris Thunell, Jul 25, 2006
    #1
    1. Advertisements

  2. Chris Thunell

    Jim Wooley Guest

    > 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
     
    Jim Wooley, Jul 26, 2006
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jwgoerlich
    Replies:
    2
    Views:
    393
    jwgoerlich
    Nov 14, 2003
  2. Jarod_24

    System.Security.SecurityException

    Jarod_24, Jan 12, 2004, in forum: Microsoft VB .NET
    Replies:
    3
    Views:
    216
    Dot Net Team [MSFT]
    Jan 12, 2004
  3. Jason

    serial port and securityexception

    Jason, Mar 2, 2004, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    218
    Anand Balasubramanian
    Mar 10, 2004
  4. Ioannis Demetriades

    .NET Security Policy question - SecurityException

    Ioannis Demetriades, Apr 19, 2004, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    567
    Marc Butenko
    Apr 20, 2004
  5. Guest

    system.security.securityexception error

    Guest, May 13, 2004, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    174
    Guest
    May 13, 2004
Loading...

Share This Page