|
Question : Access to the registry key denied
|
|
Any help would be greatly appreciated.
Server Error in '/' Application. --------------------------------------------------------------------------------
Access to the registry key HKEY_LOCAL_MACHINE\Software\IBM\Client Access\CurrentVersion\Common\ManagedProvider\Service is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the registry key HKEY_LOCAL_MACHINE\Software\IBM\Client Access\CurrentVersion\Common\ManagedProvider\Service is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
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:
[UnauthorizedAccessException: Access to the registry key HKEY_LOCAL_MACHINE\Software\IBM\Client Access\CurrentVersion\Common\ManagedProvider\Service is denied.] Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) +74 Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) +503 IBM.Data.DB2.iSeries.mptrace.ReadTraceInfoFromRegistry(Boolean& traceOn, Boolean& loggingOn, String& traceFile, String& logFile, String& connectionStringOverride) IBM.Data.DB2.iSeries.iDB2Trace..cctor()
[TypeInitializationException: The type initializer for "IBM.Data.DB2.iSeries.iDB2Trace" threw an exception.] IBM.Data.DB2.iSeries.iDB2Connection..ctor(String connectionString) Quest.SampleInvoicesPage.LoadGrid(Boolean InitialLoad) in C:\Documents and Settings\mmuli4413\My Documents\Visual Studio Projects\Quest\Quest\Territory\SampleOrders\Invoices.aspx.vb:143 Quest.SampleInvoicesPage.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\mmuli4413\My Documents\Visual Studio Projects\Quest\Quest\Territory\SampleOrders\Invoices.aspx.vb:90 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +739
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|
|
Answer : Access to the registry key denied
|
|
The ASP.NET account does not have the proper access rights to the registry key in question.
To view the permissions on the registry key, click on start, Run. Type in "regedit" and then browse to the key you with to read Right click on it and click permissions. There you can see what access rights users have over that key. If a user account is NOT listed, then they do not have any access rights which is basically a denial of all things read/write.
|
|
|
|