|
-
Dec 5th, 2008, 11:25 AM
#1
Thread Starter
Hyperactive Member
[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?
-
Dec 5th, 2008, 11:28 AM
#2
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 -
-
Dec 5th, 2008, 11:38 AM
#3
Thread Starter
Hyperactive Member
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.
-
Dec 5th, 2008, 03:48 PM
#4
Thread Starter
Hyperactive Member
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.
-
Dec 5th, 2008, 10:05 PM
#5
Thread Starter
Hyperactive Member
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.
-
Dec 10th, 2008, 02:28 PM
#6
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|