Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Permission Denied error on one method of VB DLL


Message #1 by "Heather Sterk" <hrsterk@h...> on Mon, 16 Sep 2002 17:59:50
When I call a method of my VB component from my ASP page I get the 
following error:

Microsoft VBScript runtime error '800a0046'  Permission 
Denied: 'Component.Method'

The really odd thing is that just prior to calling this method I call 
another method from the same DLL and it works fine.  The DLL is on a 
different server than my ASP page.  

So for instance, I create an instance of the DLL:

   set oCOM = server.CreateObject("MyCOM.clsMyCOM")

Then I call the first method:

   oXML.loadxml oCOM .GetXML(sURL)
     This method by the way uses HTTP to get XML from our XML database.

Then I call the second method:
   lRecCount = oCOM .UpdateNode(oXML, sDBPath, 
sDB, "nodename", "nodename/elementname", "elementname", sRptStatus, 
sUsername)

I do have message inside of my components that write to a database and I 
do see the message from the first method but not the second.  I also see 
where the DLL goes through the Class_Terminate event in the cleanup.  I 
have tried uninstalling and recreating the MSI files etc.  I have 
commented out the code which calls the first method and I still get the 
same message on the second method.  Any help on this one would be greatly 
appreciated.

Heather
Message #2 by "Kevin Ross" <koss@n...> on Tue, 17 Sep 2002 12:33:56
Heather,

Just looks like a folder permission problem, just make sure you have write 
permissions granted on the folder where the xml file you are updating 
resides.
Message #3 by "Heather Sterk" <hrsterk@h...> on Tue, 17 Sep 2002 19:30:48
> Heather,

> Just looks like a folder permission problem, just make sure you have 
write 
p> ermissions granted on the folder where the xml file you are updating 
r> esides.

The XML file is not physically located on the drive it is in an XML 
database.  I am having the same problem on another DLL.  Does anyone know 
which permissions control if a DLL can execute from an ASP page?  Thanks 
again for any help.

  Return to Index