SecurityException with UNC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Thunell

    #1

    SecurityException with UNC

    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\cth unell\My Documents\My Projects (something like this)

    I'm getting a SecurityExcepti on was unhandled.. Request for the Permission
    of type 'System.Secuirt y.Permissions.S ecurityPermisio n'... 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
    cthunell@pierce associates.com


  • Jim Wooley

    #2
    Re: SecurityExcepti on with UNC

    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\cth unell\My Documents\My Projects (something like this)
    >
    I'm getting a SecurityExcepti on was unhandled.. Request for the
    Permission of type 'System.Secuirt y.Permissions.S ecurityPermisio n'...
    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



    Comment

    Working...