|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
My object/class/whateverI 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 Bryan,
>Anyone have any ideas on how to fix this? Modify yor machine (or enterprise) security policy to give therequired 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. 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. |
|||||||||||||||||||||||