Click to See Complete Forum and Search --> : Server.CreateObject failed


Dima1970
February 22nd, 2000, 05:57 PM
I have an active DLL which compiles normally. Then I even go and register the DLL manually using REGSVR32. It also successful. But when I'm trying to instantiate the dll from an ASP page using:
Set Session("Services") = Server.CreateObject("MyDLL.Services")
I receive this error:
The call to Server.CreateObject failed. The requested object instance cannot be created.
Looking at MyDLL.dll through depends.exe - it looks like nothing is missing and all the supporting programs recognize it. I'm running PWS, ASP.exe on NT Workstation, stopping the WWW Service and re-registering DLL every time.
Can anybody point me in the right direction?

Thanks for your attention.

Kyle Burns
February 23rd, 2000, 07:00 AM
I've had similar problems with calling my own DLL's from ASP. I don't know what the cause of the problem is, but I do know that every time I encountered this problem, if I registered the component in MTS, I was able to use the component with no problem. Hope this solution can apply to you.

Dima1970
February 23rd, 2000, 10:57 AM
Thanks for your reply, but I'm still not clear how I can registered my DLL in MTS. Can you please elaborate on that?

Thanks

Kyle Burns
February 23rd, 2000, 11:29 AM
Here are the required steps to register your component with MTS
1) open up the Microsoft management console.
2) expand the transaction server, right click on "pkgs installed" then "new package"
3) click "create an empty package"
4) give the package a name
5) specify the administrator account or use "interactive" if the server is always logged in as the administrator

6) now right mouse click on "components" under the package you just created. click "new then component"
7) click "install new component"
8) browse your way to the .dll file and click next to finish.

To remove the object, select the icon and hit delete.