.NET Framework Bookmark and Share   
 index > Common Language Runtime > Giving OWC11 a strong name
 

Giving OWC11 a strong name

Hi all. Thanks for taking the time to read this, it's a little long, but I really hope you can help me.

I have a WinForm with an AxSpreadsheet control. To add it to my form, I just added the control to the tool box (Microsoft SpreadSheet 11), and dragged it. So far, so good. That control added two references to my project, Interop.OWC11 and AxInterop.OWC11, which were assemblies placed under the obj folder for my project. I developed everything without a problem, and it all worked fine. The problem came when I had to strong sign my assembly to deploy the application. I know that COM assemblies have to be strong signed as well, so I tried to sign OCW11 with the tlbimp and aximp utilities, without any success. Here's all I did:

First, I tried tosign OWC11.dll, which was found under C:\Program files\Common files\Microsoft shared\Web components\11. tlbimport succesfully worked, and generated my own signed DLL. Then according to what I've read, I tried to use aximp on that same assembly (OWC11.dll) to get the Ax strong signed assembly, but that's when I got my problem error: AxImp Error: Error writing the result file 'C:\StrongName\OWC11.dll'.

How can I get to successfully sign the assembly and get the Ax dll as well? I tried doing the same procedure to the Interop files generated automatically by Visual Studio 2008 in my obj folder, but in that case I can't even get to make the Interop.OWC11.dll file to work.

Any help will be greatly appreciated.

Thanks in advance.


:. HUGONNE .: Please mark as answer if the post helps. Coding thougts - http://hugonne.blogspot.com/
Hugonne
Remove them from your References, then add them back in. The IDE will now automatically sign them.
Hans Passant.
nobugz
Its generally adviced to use the pre-singed interop assemblies microsoft provides
Ray M_
Remove them from your References, then add them back in. The IDE will now automatically sign them.
Hans Passant.

Should I add them from the same obj folder, or from the COM object list in the Add reference dialog?
:. HUGONNE .: Please mark as answer if the post helps. Coding thougts - http://hugonne.blogspot.com/
Hugonne
Its generally adviced to use the pre-singed interop assemblies microsoft provides

Thanks. I just downloaded the 2003 version (which is the Excel version I need). Are these assemblies installed to the GAC? How would I use them in my project?
:. HUGONNE .: Please mark as answer if the post helps. Coding thougts - http://hugonne.blogspot.com/
Hugonne
From the COM type library so the interop DLLs get re-generated. If the PIA also supports OWC (I doubt it) then you don't get the interop assemblies. An OWC PIA is mentioned on this page but the link is dead.
Hans Passant.
nobugz
From the COM type library so the interop DLLs get re-generated. If the PIA also supports OWC (I doubt it) then you don't get the interop assemblies. An OWC PIA is mentioned on this page but the link is dead.
Hans Passant.

I deleted my previous references to Interop.OWC11 and AxInterop.OWC11 and added back a reference to the Microsoft Office Web Componentes 11 COM component, but it only adds OCW11, and not AxOCW11, so now I'm getting code errors. What is the next step? Thanks.
:. HUGONNE .: Please mark as answer if the post helps. Coding thougts - http://hugonne.blogspot.com/
Hugonne
Select the same one you selected before, whatever it was. If you can't remember, post to an Office development newsgroup or forum.

Hans Passant.
nobugz

You can use google to search for other answers

Custom Search

More Threads

• PInvoke of two separate DLL's results in SNMP MIB problem - MSDN Forums
• How to import public and prive key in RSA parameters
• Boxing and Hashtable??????
• Is single CLR instance shared by multiple .net application running on the same machine
• Destructor and dispose
• Safe handle has been closed.
• After giving an assembly a strong name, what happens a year later?
• C# Java Interaction
• C# - reading and writing memory for game trainer
• ngen.exe fails to compile managed assembly depending on mixed native/managed assembly