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?
Printable View
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?
You need to give your application full trust. Google for "caspol.exe" and you'll find out how to do it.
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.
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.
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!
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