Results 1 to 6 of 6

Thread: [RESOLVED] Security error

  1. #1

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Resolved [RESOLVED] Security error

    I get this error when trying to run a VB.Net application...

    Request for permission of type 'system.net.dnspermission, system, version=2.0.0.0, Cultrue=neutral, PublicKeyToken=b77a5c561934e089' failed

    How can I fix this?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Security error

    You need to give your application full trust. Google for "caspol.exe" and you'll find out how to do it.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: Security error

    Okay, I've looked at information on caspol.exe and I'm guessing I need to add a permission set, but still I'm clueless on how accomplish this.
    Last edited by BrianPaul; Dec 5th, 2008 at 03:33 PM.

  4. #4

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: Security error

    When I run the application from my local hard drive, it works, but from a network drive, it gives the error. I tried changing Local Intranet to Full Trust, but still I get the error.

  5. #5

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: Security error

    Ok, after educating myself on caspol.exe, I now see that running "Caspol -pp off -machine -chggroup LocalIntranet_Zone FullTrust" fixes the problem. Thanks stanav!
    Last edited by BrianPaul; Dec 6th, 2008 at 04:56 PM.

  6. #6

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: [RESOLVED] Security error

    Just found out that if you install .NET 3.5 SP1, it does away with blocking .Net programs that are run from a network share. Thank you Microsoft!

    http://blogs.msdn.com/vancem/archive...ork-share.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width