• hellow all,

    I am working on shopping cart in with C#,after giving order to buy products it is giving me error,

    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.

    how to solve it,help me.

    Tuesday, February 27, 2007 5:45 AM


  • For a web application it is better to store the data in the web.config or a database. 

    The Beer House and the PayPal ecommerce starter kits have shopping carts built in.  You might want to check them out.

    If you still have to access the registry contact your web host and see if they are willing to give you access to the registry. 
    Tuesday, February 27, 2007 5:52 PM