Tom Knowlton
asked on
Access to the registry key HKEY_CLASSES_ROOT\Record is denied.
ERROR: Access to the registry key HKEY_CLASSES_ROOT\Record is denied.
in our ASP .NET application.
Can anyone shed some light on this?
There's a developer I am trying to help with some debugging. Neither one of us uses ASP .NET that much.
Is this a simple rights issue.......or something we are doing wrong in the code?
Server Error in '/GroupClientFileDashboard ' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Access to the registry key HKEY_CLASSES_ROOT\Record 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.UnauthorizedAccessE xception: Access to the registry key HKEY_CLASSES_ROOT\Record 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 <identity impersonate="true"/>, 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:
Line 50: } */
Line 51:
Line 52: CDSNInfo oData = new CDSNInfo();
Line 53:
Line 54: //sAction = "Retrieving the server dsn for alias: '" + _sAlias + "'";
Source File: c:\inetpub\wwwroot\groupcl ientfileda shboard\gr oupclientd ashboard.a spx.cs Line: 52
Stack Trace:
[UnauthorizedAccessExcepti on: Access to the registry key HKEY_CLASSES_ROOT\Record is denied.]
Microsoft.Win32.RegistryKe y.Win32Err or(Int32 errorCode, String str) +74
Microsoft.Win32.RegistryKe y.CreateSu bKey(Strin g subkey) +503
System.Runtime.InteropServ ices.Regis trationSer vices.Regi sterValueT ype(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase) +156
System.Runtime.InteropServ ices.Regis trationSer vices.Regi sterAssemb ly(Assembl y assembly, AssemblyRegistrationFlags flags) +188
System.EnterpriseServices. Registrati onDriver.C lassicRegi stration(A ssembly asm)
[RegistrationException: Failed to register assembly 'TransPORT.NETData, Version=2.1.0.0, Culture=neutral, PublicKeyToken=f935d1cc6e1 53d8d'.]
System.EnterpriseServices. Registrati onDriver.C lassicRegi stration(A ssembly asm)
System.EnterpriseServices. Registrati onDriver.I nstallAsse mbly(Regis trationCon fig regConfig, Object obSync)
System.EnterpriseServices. Registrati onHelper.I nstallAsse mblyFromCo nfig(Regis trationCon fig& regConfig)
System.EnterpriseServices. Registrati onHelper.I nstallAsse mbly(Strin g assembly, String& application, String partition, String& tlb, InstallationFlags installFlags)
System.EnterpriseServices. Registrati onHelper.I nstallAsse mbly(Strin g assembly, String& application, String& tlb, InstallationFlags installFlags)
System.EnterpriseServices. Registrati onHelper.S ystem.Ente rpriseServ ices.Thunk .IThunkIns tallation. DefaultIns tall(Strin g asm)
System.EnterpriseServices. Thunk.Prox y.Register Assembly(A ssembly assembly)
System.EnterpriseServices. Thunk.Prox y.LazyRegi ster(Guid id, Type serverType, Boolean checkCache)
System.EnterpriseServices. Thunk.Prox y.CoCreate Object(Typ e serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
System.EnterpriseServices. ServicedCo mponentPro xyAttribut e.CreateIn stance(Typ e serverType)
System.Runtime.Remoting.Ac tivation.A ctivationS ervices.Is CurrentCon textOK(Typ e serverType, Object[] props, Boolean bNewObj) +74
GroupClientFileDashboard.W ebForm1.Pa ge_Load(Ob ject sender, EventArgs e) in c:\inetpub\wwwroot\groupcl ientfileda shboard\gr oupclientd ashboard.a spx.cs:52
System.Web.UI.Control.OnLo ad(EventAr gs e)
System.Web.UI.Control.Load Recursive( )
System.Web.UI.Page.Process RequestMai n()
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
in our ASP .NET application.
Can anyone shed some light on this?
There's a developer I am trying to help with some debugging. Neither one of us uses ASP .NET that much.
Is this a simple rights issue.......or something we are doing wrong in the code?
Server Error in '/GroupClientFileDashboard
--------------------------
Access to the registry key HKEY_CLASSES_ROOT\Record 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.UnauthorizedAccessE
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 <identity impersonate="true"/>, 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:
Line 50: } */
Line 51:
Line 52: CDSNInfo oData = new CDSNInfo();
Line 53:
Line 54: //sAction = "Retrieving the server dsn for alias: '" + _sAlias + "'";
Source File: c:\inetpub\wwwroot\groupcl
Stack Trace:
[UnauthorizedAccessExcepti
Microsoft.Win32.RegistryKe
Microsoft.Win32.RegistryKe
System.Runtime.InteropServ
System.Runtime.InteropServ
System.EnterpriseServices.
[RegistrationException: Failed to register assembly 'TransPORT.NETData, Version=2.1.0.0, Culture=neutral, PublicKeyToken=f935d1cc6e1
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.EnterpriseServices.
System.Runtime.Remoting.Ac
GroupClientFileDashboard.W
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
--------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It's Windows XP Pro
So did you try the suggested solution?
ASKER
I forwarded the suggestions to my co-worker this morning.
I have not heard back from him.
I have not heard back from him.
So it has to work on all OS where IIS is supplied. I think :-)