473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Assembly using COM Interop stubs can't be registered in the GAC

I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]
Jul 21 '05 #1
3 3047
You can sign assemblies with the sn.exe command-line .NET utility.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Angelos Karantzalis" <ak**********@yahoo.com> escribió en el mensaje
news:OZ**************@TK2MSFTNGP10.phx.gbl...
I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name,
which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]

Jul 21 '05 #2
In article <OZ**************@TK2MSFTNGP10.phx.gbl>,
ak**********@yahoo.com says...
I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]


Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny
Jul 21 '05 #3
Sunny, thank you very much for the reply. I would've used the properties
page for ever without ever noticing that :] it worked like a charm, thanks.

Cheers,
Angel
O:]
"Sunny" <su***@newsgroup.nospam> wrote in message
news:O#*************@TK2MSFTNGP15.phx.gbl...
In article <OZ**************@TK2MSFTNGP10.phx.gbl>,
ak**********@yahoo.com says...
I've built an Assembly to wrap around a COM component. However, I need to add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]


Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Elad Volpin | last post by:
Hi, I have struggled for several hours with this issue until I've understood and solved my problem. However, my solution isn't necessarily an optimal one, and worse - I think that my...
8
by: Chango V. | last post by:
Hello, We seem to need a PIA for MSXML 4. According to the documentation, only the original publisher of a COM type library is supposed to create a .NET PIA. As far as I know, Microsoft hasn't...
0
by: Johan Henningsson | last post by:
Hello, when I try to compile .net projects that is using interop then they fail. I get this error: "COM Interop registration failed. Could not load the assembly to be registered." What can...
2
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop"...
1
by: Michael Moreno | last post by:
Hello, I have been faced with an assembly versionning problem that I could not solve in two days and would appreciate any help. Here is what I have: C# Exe "Exe" that uses Win32 COM DLL ...
3
by: Angelos Karantzalis | last post by:
I've built an Assembly to wrap around a COM component. However, I need to add it to the GAC. Upon trying to do that, I'm trying to give the assembly a strong name, which fails because the com...
3
by: Dustin van de Sande | last post by:
I'm developing a ASP.NET 2.0 web application which exports and imports Word documents. The functionality is implemented in a DLL project which is referenced by the web application. In the DLL...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
7
by: Wiebe Tijsma | last post by:
Hi, I'm running a web application application using the Microsoft.Interop.Security.AzRoles version 1.2.0.0 in the GAC. After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.