473,402 Members | 2,053 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,402 software developers and data experts.

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 5111
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
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
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
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.