RE: access denied -- cannot debug in VB6

From: Joe_Langley (_at_)
Date: 06/20/05


Date: Mon, 20 Jun 2005 09:24:13 -0700

Does the ASPNET worker process have rights on this dll?

"cellbert" wrote:

> I create a VB6 DLL object within an ASP.NET page. I've set a reference to it
> in my project and call with (in C#)
>
> this.vbObject = new VB6Proj.VB6Class();
>
> Normally this works fine at runtime. And it usually works fine when I start
> up VB6 first, run the project, set a breakpoint, and bring up the webpage.
> But now, when debugging in VB6, I get Server Error
>
> Access is denied.
> .....
>
> Exception Details: System.UnauthorizedAccessException: Access 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.
>
> right on the line where I create the object. Only change I know of is a
> recent Win XP Pro security update. My machine.config trust level is Full.
> Any ideas? Thanks
> --
> -cellbert



Relevant Pages

  • 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)
  • Where is the built-in ASP.NET account?
    ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... I then found the following to try to recreate the ASP.NET account using the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SmtpMail
    ... > ASP.NET is not authorized to access the requested resource. ... > granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ...
    (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)