Solved

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

Posted on 2004-11-02
217 Views
Last Modified: 2010-04-24
Hi,
I have created a strongly named vb.net 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?  
Thanks,
Ben
0
Question by:ridgeway
    5 Comments
     
    LVL 28

    Expert Comment

    by:iboutchkine
    .Net dll does not need to be registered
    0
     
    LVL 1

    Author Comment

    by:ridgeway
    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\microsoft.net\framework\[version]\ then run the command line from there it will work.
    0
     
    LVL 4

    Expert Comment

    by:Glom
    Hi,

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

    Accepted Solution

    by:
    PAQed with points refunded (300)

    modulo
    Community Support Moderator
    0
     
    LVL 1

    Author Comment

    by:ridgeway
    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.
    0

    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 (http://msdn.microsoft.com/en-us/library/system.string.aspx) 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