Re: Debugging a c# serviced component

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 10:54:35 -0400

Msuk,

    Have you pre-registered your class with COM+ before you tried to access
the class? This might help, as I am thinking that the ASP.NET process is
trying to auto-register the component.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"msuk" <msuk@discussions.microsoft.com> wrote in message 
news:462198D6-2CB8-4AA6-B8A8-1A99AFA5BED5@microsoft.com...
> All,
>
> I have a C# library serviced component that I am trying to debug from a
> ASP.Net page. The C# has the following attributes:
>
> namespace yyyyyy
> [assembly: ApplicationAccessControl(false)]
> [assembly: Guid("860015D5-B182-4681-90D2-18C1CFFE8EE3")]
> [assembly: ApplicationName("xxxxxx")]
> [assembly: ApplicationID("88976ED4-61AF-4deb-9023-A81595B5780A")]
> [assembly: ApplicationActivation(ActivationOption.Library)]
>
>
> [Guid("3BEE7B3D-EE64-435c-B482-5104D84936A7")]
> [EventTrackingEnabled(true)]
> [Transaction(TransactionOption.NotSupported)]
> [JustInTimeActivation(true)]
> [ObjectPooling(true)]
> public sealed class VirusMain : ServicedComponent
>
> When the ASP.Net app tries to create an instance of the component I get 
> the
> following error:
>
> Exception Details: System.UnauthorizedAccessException: Access to the
> registry key HKEY_CLASSES_ROOT\xxxxxx\xxx 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.
>
> Can anyone help?
> Thanks
>
>
>
> 


Relevant Pages

  • 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)
  • Upload Permissions
    ... ASP.NET is not authorized to access the requested resource. ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)
  • delete file access denied to the authorized folder(no way out)
    ... Please any urgent help regarding following code. ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)
  • re-install?
    ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework)
  • Re: Re-install?
    ... > granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... > IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)