My object/class/whatever

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

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!
 
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
 
What specific permissions need to be granted? Or should it be evident once I
get into those tools?
 
Back
Top