ERROR in running a service

From: afsheen (afsheenj_at_hotmial.com)
Date: 10/24/03


Date: Fri, 24 Oct 2003 17:51:35 +1000

hi ....

iam using a DPAPI to encrypt a connection string and running a serviced
windows components ... when i run my web app that calls the serviced
component i get an error
Access to the registry key HKEY_CLASSES_ROOT\DPAPIComp.DataProtectorComp is
denied.

Exception Details: System.UnauthorizedAccessException: Access to the
registry key HKEY_CLASSES_ROOT\DPAPIComp.DataProtectorComp 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.

ai ahve also tried giving permissions through regedt32 ... still getting
the same error .......



Relevant Pages

  • Azman System.UnauthorizedAccessException in web services
    ... I m using Winxp sp2 for development. ... granting access rights to the resource to the ASP.NET request identity. ... ASP.NET has a base process identity (typically \ASPNET on IIS ... If the application is impersonating via <identity ...
    (microsoft.public.dotnet.security)
  • ASP.NET and creating a word document
    ... to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application ... If the application is impersonating ...
    (microsoft.public.dotnet.framework.interop)
  • Server Error in Photos Application
    ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unable to write files to the server.
    ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... adding aspnet to the admin group to hunting through gpedit.msc to find ...
    (microsoft.public.dotnet.framework.aspnet)
  • pass data to a text file! What this error means?
    ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ... and can u please suggest me how to trigger searching capability? ...
    (microsoft.public.dotnet.framework.aspnet)