Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2005

Tip: Looking for answers? Try searching our database.

regsvr32 fails for interop DLLs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
z f - 11 Sep 2005 10:00 GMT
i make a DLL with COM interop support.
but regsvr32 fails.
what can i do to register the DLLs?

TIa.
Egbert Nierop (MVP for IIS) - 11 Sep 2005 10:05 GMT
>i make a DLL with COM interop support.
> but regsvr32 fails.
> what can i do to register the DLLs?

run regasm on the assembly DLL and register the tlb!

after that run
gacutil /i  on your assembly.

ps: Note that your assembly gets stuffed with many older versions if you
work like this.

> TIa.
Heath Stewart [MSFT] - 25 Sep 2005 02:49 GMT
If for some reason you don't want to install your interop assembly into the
GAC, you can also pass the /codebase option to regasm.exe:

regasm.exe /codebase /tlb Interop.MyLib.dll

This will register the fully-qualified path to the assembly in the registry.

The reason regasm.exe has to be used is because a CCW (COM-Callable Wrapper)
doesn't expose DllRegisterServer and DllUnregisterServer like native DLLs or
OCXs might. mscoree.dll actually acts like a shim, hosting the CLR, loading
the CCW, and marshaling calls to and from managed code.

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

> >i make a DLL with COM interop support.
> > but regsvr32 fails.
[quoted text clipped - 9 lines]
>
> > TIa.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.