Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

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

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
ridgeway
Asked:
ridgeway
1 Solution
 
iboutchkineCommented:
.Net dll does not need to be registered
0
 
ridgewayAuthor Commented:
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
 
GlomCommented:
Hi,

In your Project Properties / Configuration Properties / Generation Tab, Have you checked the box 'Register for COM Interop' ?
0
 
moduloCommented:
PAQed with points refunded (300)

modulo
Community Support Moderator
0
 
ridgewayAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now