set permision to registry

  • Thread starter Thread starter cHrisV
  • Start date Start date
C

cHrisV

I have an aplication in .NET... and i have de error..


******************************************************
Exception Details: System.Security.SecurityException:
Requested registry access is not allowed.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:


[SecurityException: Requested registry access is not
allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name,
Boolean writable) +473
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName, Boolean
useMutex)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName)

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPubl
isher.VerifyValidSource()
*********************************************************

and my question is:
how is possible to set permision to registry.. like in
WIN XP.. for example ( i have win2000 server)
 
--------------------
From: "cHrisV" <[email protected]>
Subject: set permision to registry
Date: Mon, 12 Apr 2004 08:20:36 -0700
Newsgroups: microsoft.public.win2000.registry

I have an aplication in .NET... and i have de error..

******************************************************
Exception Details: System.Security.SecurityException:
Requested registry access is not allowed.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:

[SecurityException: Requested registry access is not
allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name,
Boolean writable) +473
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName, Boolean
useMutex)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName)

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPubl
isher.VerifyValidSource()
*********************************************************

and my question is:
how is possible to set permision to registry.. like in
WIN XP.. for example ( i have win2000 server)

-----

Chris,

If you are asking how to set the permissions on a registry key manually in Windows 2000 you have to run Regedt32.exe. In
Regedt32.exe you will find a Security menu with Permissions on it. The Regedit.exe in Windows 2000 does not have this
ability.

Bill Peele
Microsoft Enterprise Support

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread
from which they originated.
 
--------------------
From: "cHrisV" <[email protected]>
Subject: set permision to registry
Date: Mon, 12 Apr 2004 08:20:36 -0700
Newsgroups: microsoft.public.win2000.registry

I have an aplication in .NET... and i have de error..

******************************************************
Exception Details: System.Security.SecurityException:
Requested registry access is not allowed.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:

[SecurityException: Requested registry access is not
allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name,
Boolean writable) +473
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName, Boolean
useMutex)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName, String machineName)
System.Diagnostics.EventLog.CreateEventSource(String
source, String logName)

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPubl
isher.VerifyValidSource()
*********************************************************

and my question is:
how is possible to set permision to registry.. like in
WIN XP.. for example ( i have win2000 server)

-----

Chris,

If you are asking how to set the permissions on a registry key manually in Windows 2000 you have to run Regedt32.exe. In
Regedt32.exe you will find a Security menu with Permissions on it. The Regedit.exe in Windows 2000 does not have this
ability.

Bill Peele
Microsoft Enterprise Support

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread
from which they originated.
 
Back
Top