Problem using dcom dll in ASP.NET for a custom application that interfaces with Hummingbird DM.  Getting Cannot create ActiveX component if late bind and permissions issue if early bind.

Posted on 2006-05-10
Last Modified: 2008-01-09

I'm writing a custom ASP.Net application that interfaces with Hummingbird DM api's.  If I use the following in the code ( which I got to work in a VB.Net application )

lapp = CreateObject("DocsObjects.Application")

it gives a "Cannot create ActiveX Component error.

If I use

lapp = new DocsObjects.Application

I get a permission's error.

I have read some other questions on here about activex and about having the page make the client install the control.  Honestly, I still a little confused on this issue.  

The application will list out links to documents and when the user clicks on them it will open the document on their computer just like it would through hummingbirds windows client.  This is an intranet application and all the users already have the dll file installed on their computer with hummingbirds window application.  I need my application to somehow interact with the dll already on their computer I think.....any  ideas???

here is the code.  which I don't think will help too much.  This code worked in ( change response.write to msgbox).
I added reference to the dll.  The dll is written in VB5 or 6.  probably vb6.

            Dim lapp As Object
            Dim llib As Object
            Dim lcom_doc As Object

            lapp = CreateObject("DocsObjects.Application")
            llib = lapp.CurrentLibrary()
            ' 133914 is the document number I'm testing with.  It is an excel spreadsheet.
            lcom_doc = llib.GetProfile(133914)

            lcom_doc = Nothing
            lapp = Nothing
            llib = Nothing
       Catch ex As Exception
            response.write( ex.Message)
  End Try
Question by:thomaslongas
    LVL 14

    Accepted Solution

    The user (usually IUSER_machine) has to have permissions to execute (and probably read) the DLL.
    LVL 14

    Expert Comment

    Did this answer your question.  If not let me know and I'll see what I can do.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now