Register a .Net dll in the Windows registry (for COM access)

Posted on 2004-11-02
Last Modified: 2010-04-24
I have created a strongly named dll, updated the assembly to include a guid & assembly key file & added the <ComClass()> attribute.  I am trying to register the dll on a server but the regasm utility is not found.  I try to use regsvr32 but I get the error "[name] was loaded, but the DllRegisterServer entry point was not found.  [name] This file can not be registered.  What am I doing wrong?  
Question by:ridgeway
    LVL 28

    Expert Comment

    .Net dll does not need to be registered
    LVL 1

    Author Comment

    It does not need to be registered if I only use it from the GAC or use it from other managed code.  I need to use it from SQL DTS which requires a COM interface.

    Anyway I figured it out if any one else has this problem.  The regasm.exe is nested in the framework root.  If you browse out to it (usually c:\windows\\framework\[version]\ then run the command line from there it will work.
    LVL 4

    Expert Comment


    In your Project Properties / Configuration Properties / Generation Tab, Have you checked the box 'Register for COM Interop' ?

    Accepted Solution

    PAQed with points refunded (300)

    Community Support Moderator
    LVL 1

    Author Comment

    I did not post more about this article because I answered my own question.  You will notice, the second paragraph from my comment on 11/02/04 notes that I found the problem.  It had to do with the regasm.exe not being in your path.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    933 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

    11 Experts available now in Live!

    Get 1:1 Help Now