Re: GetObject("IIS://LocalHost/W3SVC") -- Access denied when called from DLL
From: Ben Strackany (infoNOSPAM_at_developmentnow.nospam.com)
Date: 11/30/04
- Next message: Ben Strackany: "Re: my Internet Explorer 6.0.2800 freezes constantly"
- Previous message: Flip: "dates in log files?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Nov 2004 09:46:03 -0600
Are you calling this DLL from an ASP or ASP.NET page? If so, you will need
to run the DLL as an account with correct permissions. Let's say it's your
account. You't can just set the anonymous user of the page to your
account -- that won't pass enough information to authenticate against the
ADSI objects.
Instead, throw the ActiveX DLL into a COM+ Server Application, and set the
identity of that application to your account. Then it should execute with
the correct permissions.
-- Ben Strackany www.developmentnow.com <a href="http://www.developmentnow.com">dn</a> "Tim Gorgs" <google@supertimmy.com> wrote in message news:afa954a3.0411290539.137ee099@posting.google.com... > Hi all, > > I have a problem which has been mentioned a couple of times in a > similar way, but not exactly as what it appears to be like with my > system. > > I have a Visual-Basic ActiveX-DLL, which is correctly registered on > the system. But whenever I call the DLL-function which contains the > "GetObject("IIS://...") line, I get the "access denied" error. > > When I debug the code in the Visual Basic IDE, everything works fine. > When I try to run the code as a VBScript, no problems occur either. > > I really don't understand why it doesn't work within the DLL which > runs under the same (mine) account as the VB IDE and the VBScript do. > I could understand if it would work with all three methods or with > none, but this is all a bit mixed up... > > Any help is very appreciated, > > thank you > > Tim
- Next message: Ben Strackany: "Re: my Internet Explorer 6.0.2800 freezes constantly"
- Previous message: Flip: "dates in log files?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|