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 / Interop / July 2007

Tip: Looking for answers? Try searching our database.

Problem registering assembly for using it as ActiveX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elvian - 18 Jul 2007 10:25 GMT
Hello,

I've got a little problem. I used to develop a component with Visual
Studio .NET 2003 (.NET framework 1.1), and registering this assembly
to COM interop with a function only writing keys in the registry
(regedit).

This way, I was able to include my activeX component in a former
Visual Studio 6 c++ project (~10 000 files).

The problem is when I switched to Visual Studio C# Orcas express
Editionm and using the .NET framework 3.0

The COM registration doesn't work anymore, and I'm trying to use
regasm to register the assembly, but it doesn't seems to be working,
because I'm not allowed to register the assembly in the GAC, nor to
provide a strong name for it.

Does anyone knows if there is a way, just like the wat I was doing
things before, i.e. writing directly keys in the registry, or at
least, avoiding the use of the GAC and strong names ?

Thank you in advance.

CD
Micky Duncan - 30 Jul 2007 05:11 GMT
Hi,
If you want to place things into the GAC it must be strong named.

If for some reason you don't want to do that (because it itself relies on
3rd party assemblies that are not strong-named) then you don't have to make
it COM visible and be in at the GAC - use the /codebase option.

However, only one of your assemblies can use the /codebase option - you
cannot have two different copies in different paths.  Ensure you unregister
before registering with /codebase as well.

Cheers,
MickyD

> Hello,
>
[quoted text clipped - 21 lines]
>
> CD
christopher.dirand@gmail.com - 31 Jul 2007 09:57 GMT
On Jul 30, 5:11 am, "Micky Duncan" <micky_hatess...@nowhere.com>
wrote:
> Hi,
> If you want to place things into the GAC it must be strong named.
[quoted text clipped - 37 lines]
>
> - Show quoted text -

Thank you very much MickyD,

In fact, I ended with your solution, the /codebase option. It does not
really matter to register/unregister the assembly in the context I'm
working with, so it is the perfect solution.
Thanks again

CD

Rate this thread:







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.