Retrieving the COM class factory for component with CLSID {791AAE5A-9ECB-4E02-9659-2EF1494C010B} fai

Discussion in 'ASP.NET 2.0' started by cmdr_skywalker, Jan 24, 2007.

  1. I have a DLL created using VB6. When I run the .Net Web service in my local computer, it works fine. However, when I published the webservice, the service encounters an error when it creates the object from the DLL. I already added the Imports and even used the full path. The offending code is the shown beleow


    ...
    <WebMethod()> Public Function TestingApp(ByVal ApplicationData As String) As String
    dim sData as string

    sData = ApplicationData

    'error is encountered here
    oCipher = New EISWACipher.CustomCipher 'when i comment this out, the function will work fine

    TestingApp = sData
    End Function

    The error:
    Retrieving the COM class factory for component with CLSID {791AAE5A-9ECB-4E02-9659-2EF1494C010B} failed due to the following error: 80040154.

    I check the Interop.EISWACipher.dll and it is in the bin directory.

    I appreciate your help.
    Thank you

    Post Edited By Moderator (Joel Thoms) : 1/25/2007 11:30:59 PM GMT
     
  2. Its because every COM object needs to be registered on the server before it can be used,just having the dll in your bin wont help.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. In that case, how can I register the COM dll in the DASP server?
     
  4. If you could tell me what exactly are you using the component for,may be Dasp has an alternative component installed which you can use instead,but Dasp does not register components individually for every customer.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    To make sure our servers' stability, we do not allow 3rd party dll installation.

    COM dll can cause many problems, eg.

    - Server crash
    - Licensing issues
    - version conflict, etc.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  6. Thank you for the info everyone.
     

Share This Page