RE: access denied -- cannot debug in VB6

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


Date: Mon, 20 Jun 2005 19:43:01 -0700

Well, I'm not sure. I made the aspnet user an administrator on my system,
but if you mean I can assign rights to a specific process to a dll, I don't
know how to do that. I would add, however, that the dll is fine -- it's when
I'm debugging in VB6 that I get the problem. At that point, I believe, it's
the VB6 IDE itself hosting the code out-of-process. I think I need to assign
some rights to vb6.exe or some of its dlls. Appreciate the feedback,

-- 
-cellbert
"Joe_Langley" wrote:
> 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

  • General DLL Questions - Best Practices? Suggestions? Comments?
    ... So we develop and maintain several applications used by several people ... rewrites of all the VB6 apps. ... The VB6 executables are all stored in a network folder, ... runs regsvr32.exe for each dll. ...
    (microsoft.public.dotnet.general)
  • Re: Problem with Multithread in VB6
    ... Events get raised by this DLL on their own threads ... In a VB6 client application, if I'll create an object "WithEvents" and write ... Dim frmMainForm As DispMain ... ' PublicNotCreatable) displays the main user interface ...
    (microsoft.public.vb.com)
  • Re: Register TLB
    ... The .net DLL was created and compiled with the "COM visible" option, ... Although the .DLL file appeared to be also registered, vb6 refused to ... So, I am left with having to reference the .TLB file, ... There didn't seem an option for generating a dependency file in vb.net, ...
    (microsoft.public.vb.general.discussion)
  • Error with TreeView Control (MSCOMCTL.OCX) via COM Interop from ASP.NET and Service Pack
    ... I have an ASP.NET application that calls all VB6 COM DLL via ... The DLL uses functionality contained in a Custom OCX Control ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.NET calling COM DLL under SP1 (2003) or SP2 (XP) causes exception
    ... I have an ASP.NET application that calls all VB6 COM DLL via ... The DLL uses functionality contained in a Custom OCX Control ... Windows 2003 Server - Service Pack 1 ...
    (microsoft.public.dotnet.framework.aspnet.security)