ERROR in running a service

Discussion in 'ASP .Net Security' started by afsheen, Oct 24, 2003.

  1. afsheen

    afsheen Guest

    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 .......
    afsheen, Oct 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John

    Error running web service

    John, Jun 12, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    312
    Ashish M Bhonkiya
    Jun 12, 2004
  2. John

    Error running web service

    John, Aug 10, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    366
  3. Jennyfer J Barco

    Timeout expired error in a service running

    Jennyfer J Barco, Jun 2, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    452
    Jennyfer J Barco
    Jun 2, 2005
  4. hocho888
    Replies:
    1
    Views:
    600
  5. John

    Error running web service

    John, Jun 12, 2004, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    91
    Jan Tielens
    Jun 14, 2004
Loading...

Share This Page