ASP DLL Error - ASP 0177: Server.CreateObject

Posted on 2010-01-04
Last Modified: 2012-05-08
I have a legacy app built with traditional ASP, VB 6 dlls and SQL Server 2000. I am in the process of upgrading the app to a new server. The old server was Windows Server 2003, IIS 6 ans SQL 2000. Our new server still runs Windows Server 2003 and IIS 6. We upgraded to SQL 2005. I've moved all of the files and dlls to the new server and set up IIS. Permissions have been set. When I try to open the defualt page, I get the error referenced in my title, ASP 0177: Server.CreateObject. Actually, I get the HTTP 500 Internal Server Error from the web page. When I look at the error log, I find the ASP 0177: Server.CreateObject error. I've registered the DLL and it seems to do that fine, no errors. I've checked and double checked permissions. I'm getting very frustrated with this. Any ideas why I keep getting this error? Any help is appreciated.
The error arises at this line of code:

Set Application("~WC~WebClassManager") = Server.CreateObject("WebClassRuntime.WebClassManager")

Open in new window

Question by:dodgerfan

    Author Comment

    I don't think the dll is registering, for some reason. It does not give me any errors when I register, but it does not seem to ba taking.

    Author Comment

    I tried registering a a different way, and sure enough I get the DLLResgisterServer c:\files\my.dll failed. Return code was: 0x80004005
    LVL 3

    Expert Comment

    Have you enabled ASP within IIS, its not enabled by default.  If you send me the error line in the sites log file I'll be able to determine where the error is.

    Thanks Phil

    Author Comment

    I have enabled ASP. I can load ASP pages and hit the database. It's any page that uses that dll that's causing the problem. The dll refuses to register. When I try to register it, I get this error:
    DLLResgisterServer c:\files\my.dll failed. Return code was: 0x80004005. The error I find in the log says it cannot create the server object, whcih makes sense since the dll it uses is unavailable. Any ideas?
    LVL 3

    Accepted Solution

    Are you logged in as Administrator or a member of the administrators group when you do this, otherwise you may not get access to HKEY_LocalMachine regkeys during the registration process.  The cant create object makes sense if the dll is not registered.  During registration it doesn't say anything about not finding the entry point?

    Author Comment

    I am logged in as the administrator. And the registration process only gives me the error I detailed above. I have no idea what I'm missing.
    LVL 12

    Assisted Solution

    The error code 0x80004005 is the code for "access denied". So SimpsonThePhil is right with checking access and rights or some missing files. When you initially deployed your solution on the first server (where it worked) a bunch of Web Class dll have been created as well. The best way to deploy them to ANOTHER server is by using the "Package and Deployment Wizard" from VB, this takes care for ALL dlls not just the final one with your logic.

    You'll find some more infos here:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now