473,400 Members | 2,145 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,400 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 3048
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.