DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 18 Jul 2007 02:25:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Elvian
          2    Micky Duncan
          3    unknown


Problem registering assembly for using it as ActiveX   
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
Date:Wed, 18 Jul 2007 02:25:01 -0700   Author:  

Re: Problem registering assembly for using it as ActiveX   
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"  wrote in message 
news:1184750701.031758.80840@j4g2000prf.googlegroups.com...

> 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
> 
Date:Mon, 30 Jul 2007 12:11:03 +0800   Author:  

Re: Problem registering assembly for using it as ActiveX   
On Jul 30, 5:11 am, "Micky Duncan" 
wrote:

> 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"  wrote in message
>
> news:1184750701.031758.80840@j4g2000prf.googlegroups.com...
>
>
>
> > 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- Hide quoted text -
>
> - 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
Date:Tue, 31 Jul 2007 08:57:08 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us