System.Security.Permission.RegistryPermission

  • Thread starter Thread starter Mohan
  • Start date Start date
M

Mohan

Hi,

I have developed a .NET Windows application. I able to run(Execute) it
from the local drive of my PC. If I try to execute it from the
SourceControl(Clear case) or from Shared drives, then it is not starting the
application, but given the below error.

Request for the permission of type
System.Security.Permission.RegistryPermission, mscorlib, Version=1.0.5000.0,
Culture=neutral,PublicKeyToken=b77a5c561934e089 failed

and Crashing.

Please help me in solving this problem by adding code in the
application. As this application is going to deploy in many PCs.


Thanks & Regards,
Mohan
 
I would suggest you to start reading the chapters about Code Access
Permission (CAS) in the MSDN docs. Code that gets loaded from a non local
disk doesn't run with 'Fulltrust' permissions, you can elevate the
permission set of such application by running caspol.exe (see the docs for
options) or you can start the NET Framework Configuration UI utility from
the Administration Tools.

Willy.
 
Back
Top