Home All Groups Group Topic Archive Search About

My object/class/whatever

Author
1 Jun 2006 4:58 PM
Bryan Dickerson
I recently converted a VB6 program to VS 2005 that had a call to some
Shell32 APIs to manipulate/test some registry keys.  Using
My.Computer.Registry, I was able to make the program much simpler.  The one
problem is that I want this to be a program that I can run from a network
shared drive on any machine to test that individual machine's registry
settings and once I compile the program and try to run it from the network
share, it gets an error: "Request for the permission of type:
'System.Security.Permissions.RegistryPermissions, mscorlib, Version=2.0.0.0,
culture=Neutral, PublicKeyToken=...' failed."  Anyone have any ideas on how
to fix this?

TIA!

--
TFWBWY...A

Author
1 Jun 2006 9:51 PM
Mattias Sjögren
Bryan,

>Anyone have any ideas on how to fix this?

Modify yor machine (or enterprise) security policy to give the
required permissions to code executing from that network share. You
can do it with Caspol.exe or the .NET Framework 2.0 Configuration
administrative tool.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
2 Jun 2006 10:00 PM
Bryan Dickerson
What specific permissions need to be granted? Or should it be evident once I
get into those tools?

Show quoteHide quote
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:OPg7sVchGHA.2340@TK2MSFTNGP03.phx.gbl...
> Bryan,
>
>>Anyone have any ideas on how to fix this?
>
> Modify yor machine (or enterprise) security policy to give the
> required permissions to code executing from that network share. You
> can do it with Caspol.exe or the .NET Framework 2.0 Configuration
> administrative tool.
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.