Exception: Retrieving the COM class factory for component

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    Exception: Retrieving the COM class factory for component

    Hi there :)

    I've finally moved my Online Registration project on to the box where it will be hosted. This new server is running IIS6.

    After moving the project to the new server and running through it to make sure every thing's working I ran into the following error:
    Code:
    Exception: 
    Retrieving the COM class factory for component with 
    CLSID {63EA957E-1FFE-41D5-940E-AF431279FB19} 
    failed due to the following error: 80040154.
    At the point that the system crashed it was attempting to access a DLL written in VB6.

    After doing some research I have gathered that the DLL must be registered in order to use it.

    I have two questions about this:

    i) Since I can't compile the website on the new server, will it still be able to find the DLL? Or will I have to edit the webconfig to point to where the DLL was registered in memory?

    ii) If I was hosting this on someone else's server, I likely wouldn't be able to register the DLL...how would I get around this problem?

    Thanks a lot

    -Frinny
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Well, I'm revising this question now that I know the answer.

    If a website contains a COM object it must be registered (using tool regsvr32 tool) in order to use it. The COM object can be located anywhere on the computer so long as it is registered and is located in a folder that ASP.NET has access to.

    For this reason, web sites that use 32 bit COM objects cannot operate on a 64 bit operating system...becaus e ASP.NET is not allowed to access the syswow32 folder.

    -Frinny

    Comment

    Working...