473,386 Members | 1,823 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,386 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 5109
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...

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.