CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Posts
    8

    Server.CreateObject failed

    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.





  2. #2
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Server.CreateObject failed

    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.


  3. #3
    Join Date
    Feb 2000
    Posts
    8

    Re: Server.CreateObject failed

    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


  4. #4
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Server.CreateObject failed

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured