Re: Debugging a c# serviced component
From: msuk (msuk_at_discussions.microsoft.com)
Date: 09/15/04
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Previous message: Nick Malik: "Re: Debugging a c# serviced component"
- In reply to: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 08:23:07 -0700
hi,
If I pre-register the C# in COM+ my ASP.Net app calls this and does not step
into the code. I have tried to attach the process but it does not work?
Any ideas?
Msuk
"Nicholas Paldino [.NET/C# MVP]" wrote:
> 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
> >
> >
> >
> >
>
>
>
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Previous message: Nick Malik: "Re: Debugging a c# serviced component"
- In reply to: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: Debugging a c# serviced component"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|