HighTechTalks DotNet Forums  

Problem registering assembly for using it as ActiveX

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Problem registering assembly for using it as ActiveX in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Elvian
 
Posts: n/a

Default Problem registering assembly for using it as ActiveX - 07-18-2007 , 05:25 AM






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


Reply With Quote
  #2  
Old   
Micky Duncan
 
Posts: n/a

Default Re: Problem registering assembly for using it as ActiveX - 07-30-2007 , 12:11 AM






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

"Elvian" <roninfight (AT) gmail (DOT) com> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.