423,822 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,822 IT Pros & Developers. It's quick & easy.

IWshRuntimeLibrary does not have a strong name

P: n/a
Hi

I have a c# application that I sign with a strong name key which is fine,
but when I add a reference to IWshRuntimeLibrary I get the following error
when I build my project:-

error CS1577: Assembly geration failed -- Referenced assembly
'Interop.IWshRuntimeLibrary' does not have a strong name

Does anyone know how I can get round this? Perhaps there is a strong name
version of the IWshRuntimeLibrary I could use? If so, where can I get it
from?

Thanks for any help

John
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi John,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to build an
assembly, and error which says the referenced assembly
'Interop.IWshRuntimeLibrary' does not have a strong name. If there is any
misunderstanding, please feel free to let me know.

Based on my research, when your assembly is trying to interop with a COM or
ActiveX control, a wrapper for that will be generated by VS.NET
automatically. So if the assembly is strong named, the wrapper should also
be strong named. Here are the steps to set strong name key for the wrapper.

1. Right click that C# application project in the Solution Explorer.
2. Select Properties in the pop up menu.
3. Set the Wrapper Assembly Key File property as the strong name key file
used by the application in the AssemblyInfo.cs file.
4. Click OK.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2

P: n/a
Hi Kevin

You have solved my problem!

Thanks a lot for your help.

John
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:rH****************@cpmsftngxa06.phx.gbl...
Hi John,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to build an
assembly, and error which says the referenced assembly
'Interop.IWshRuntimeLibrary' does not have a strong name. If there is any
misunderstanding, please feel free to let me know.

Based on my research, when your assembly is trying to interop with a COM or ActiveX control, a wrapper for that will be generated by VS.NET
automatically. So if the assembly is strong named, the wrapper should also
be strong named. Here are the steps to set strong name key for the wrapper.
1. Right click that C# application project in the Solution Explorer.
2. Select Properties in the pop up menu.
3. Set the Wrapper Assembly Key File property as the strong name key file
used by the application in the AssemblyInfo.cs file.
4. Click OK.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.