Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Component can't create Object

Status
Not open for further replies.

beginnerkid

Programmer
Jul 20, 2001
50
IN
Hello,

I have a ActiveX DLL containg few COM components developed in VB6.0. I want to debug the DLL from within ASP page which creates one of the component inside the DLL in question.I haven't actually build the DLL yet and regsiter it. What I do is run the DLL in debug within VB IDE at one window and then browser my ASP page, which creates one of the component.
when I open the asp page I get following error :
VBScript runtime error '800a01ad':
ActiveX component can't create object.
I have seen that anonymus internet user IUSR_MACHINENAME has full control previlege to all the necessary files.
I am stuck here
Any help is much appreciated.
Thanks in anticipation
 
You can't debug a COM component that has never been compiled or registered (which compiling does) on a machine. Heck you can't even use it thus your "can't create object" error.

resolution
1) compile the DLL.
2) install the DLL in Component Services
3) run the DLL project in the VB IDE. If asked pick "Wait for component to be created" or something like that.
4) place breakpoints at the desired locations.

Then run your web app as normal.

 
Thanks a lot for your response Semp !
I did exactly what you asked to, still the problem persist. I must have mentioned I can create object using VBA (CreateObject). Problem occurs when I want to creatre object within

Also If I register the dll, I can create object , but once I want to access the dll running in debug IDE (after making and regstering then opening dll in IDE) then try to create it within ASP. I get this error.

Thanks once again !
Looking forward your comments !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top