access denied -- cannot debug in VB6

From: cellbert (cellbert_at_discussions.microsoft.com)
Date: 06/19/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: how to get client cpu id"
    Date: Sun, 19 Jun 2005 09:30:01 -0700
    
    

    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
    

  • Next message: Dominick Baier [DevelopMentor]: "Re: how to get client cpu id"
    Loading