Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

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.UnauthorizedAccessException: 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\groupclientfiledashboard\groupclientdashboard.aspx.cs    Line: 52

Stack Trace:

 
[UnauthorizedAccessException: Access to the registry key HKEY_CLASSES_ROOT\Record is denied.]
   Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) +74
   Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) +503
   System.Runtime.InteropServices.RegistrationServices.RegisterValueType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase) +156
   System.Runtime.InteropServices.RegistrationServices.RegisterAssembly(Assembly assembly, AssemblyRegistrationFlags flags) +188
   System.EnterpriseServices.RegistrationDriver.ClassicRegistration(Assembly asm)
 
[RegistrationException: Failed to register assembly 'TransPORT.NETData, Version=2.1.0.0, Culture=neutral, PublicKeyToken=f935d1cc6e153d8d'.]
   System.EnterpriseServices.RegistrationDriver.ClassicRegistration(Assembly asm)
   System.EnterpriseServices.RegistrationDriver.InstallAssembly(RegistrationConfig regConfig, Object obSync)
   System.EnterpriseServices.RegistrationHelper.InstallAssemblyFromConfig(RegistrationConfig& regConfig)
   System.EnterpriseServices.RegistrationHelper.InstallAssembly(String assembly, String& application, String partition, String& tlb, InstallationFlags installFlags)
   System.EnterpriseServices.RegistrationHelper.InstallAssembly(String assembly, String& application, String& tlb, InstallationFlags installFlags)
   System.EnterpriseServices.RegistrationHelper.System.EnterpriseServices.Thunk.IThunkInstallation.DefaultInstall(String asm)
   System.EnterpriseServices.Thunk.Proxy.RegisterAssembly(Assembly assembly)
   System.EnterpriseServices.Thunk.Proxy.LazyRegister(Guid id, Type serverType, Boolean checkCache)
   System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
   System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
   System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +74
   GroupClientFileDashboard.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\groupclientfiledashboard\groupclientdashboard.aspx.cs:52
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()
 

 


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
ASKER CERTIFIED SOLUTION
Avatar of EugeneK-biruza
EugeneK-biruza

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EugeneK-biruza
EugeneK-biruza

This is available since 2000 (so 2000, XP, 2003) as well as in NT 4.x
So it has to work on all OS where IIS is supplied. I think :-)
Avatar of Tom Knowlton

ASKER

It's Windows XP Pro
So did you try the suggested solution?
I forwarded the suggestions to my co-worker this morning.

I have not heard back from him.