[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-11-02
6
Medium Priority
?
224 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
Comment
Question by:ridgeway
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 28

Expert Comment

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

Author Comment

by:ridgeway
ID: 12473841
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
ID: 12483479
Hi,

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

Accepted Solution

by:
modulo earned 0 total points
ID: 12799398
PAQed with points refunded (300)

modulo
Community Support Moderator
0
 
LVL 1

Author Comment

by:ridgeway
ID: 12809420
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

649 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