Re: Debugging a c# serviced component

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: msuk (msuk_at_discussions.microsoft.com)
Date: 09/15/04


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
> >
> >
> >
> >
>
>
>



Relevant Pages

  • Re: Setting AllowBypassKey Property
    ... As long as I open the DB with shift pressed, the app stays in Design mode. ... "Bob Bonta" wrote: ... not tested on v97 database. ... I don't see an option in this reply form to attach a file ... ...
    (microsoft.public.access.modulesdaovba)
  • Re: Debugging a ClickOnce web-deployed app
    ... Run the app, open VS2k8, Debug --> Attach to Process, find the app in the list, click Attach and.... ... Dim queryString As NameValueCollection = GetQueryStringParameters ... Private Function GetQueryStringParametersAs NameValueCollection ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Emailing attachments
    ... Tried impersonation. ... succesfully attach a file to the email and send it. ... and someone else tries to open the web app as a web page ... >> What do I need to change in my web app, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: AppVerifier crashes when it calls OleLoadPictureFile()
    ... When I attach App Verfier 3.3.0045 to my app, ... Fault Module Version: 7.0.6000.16386 ... GetCurrentDirectory(MAX_PATH, appDirectory); ...
    (microsoft.public.win32.programmer.tools)
  • Re: passing username/passwd between two processes securely...
    ... Weak moments of your algorithm is that applications should create private ... and thus someone may attach to applications and find the ... Transfer the encrypted data to the other app ...
    (microsoft.public.win32.programmer.kernel)