Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2004-11-02
6
Medium Priority
?
232 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
5 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

578 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