473,513 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IWshRuntimeLibrary does not have a strong name

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
2 5125
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2730
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
2
2083
by: John O'Neill | last post by:
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:...
1
307
by: John E. | last post by:
How can I compile two projects with a circular reference while giving them a strong name? There is a project that we have that has two components that reference each other e.g. A<->B thus...
6
5331
by: sipuebla | last post by:
In our web site we have a form that can not be filled using firefox, but can be filled using IE. The form is at: http://www.sipuebla.com/brochure.htm The html is as follows: <BODY...
2
27155
by: Dale Magnuson | last post by:
I originally had all of my C# work on my local PC. Because this is dangerous I moved it off to a network drive. Since I did this I can no longer compile my code - I get the error below. The...
2
3857
by: Dennis | last post by:
I am trying to use the DriveClass to get the information for a drive but can't seem to get the syntax, etc. correct. I tried: dim drives as DrivesClass = ??????????? tried NEW but it's ...
7
1685
by: Bruce Wood | last post by:
I still haven't gotten through the .NET Framework Security tome on my desk. Maybe the folks here can answer a burning question. I want to use strong naming at our organization as a security...
1
2350
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
2
2873
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard...
5
2075
by: jmurphy | last post by:
What do i add to this script to validate the entry? Thanks in advance for the help. <form name="continue" method="POST" action="shipping1.asp" onsubmit="return validate_form ();"> <input...
0
7267
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
7175
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
7391
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,...
1
7120
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
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.