Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I m getting this error when i build my project,"Assembly generation failed -- Referenced assembly 'BLL' does not have a strong name."
What does this error mean? and what i hav to do?
Posted
Comments
Timberbird 30-Aug-12 7:47am    
Please see my comment to a solution below

you have unambiguously signed the Reports.dll correctly from the command line, VS still says that that dll is unsigned; then it must be referencing the wrong file.

If you want to be really paranoid and double-check the strong-naming after signing, load Reports.dll into ildasm (you have to double-click the manifest node in the tree and scroll down to find the .publickey section). Or for ease just open it in ILSpy.

After signing reports.dll; open your referencing project's proj file as an XML document (if you have the VS PowerCommands you can right-click and 'Edit Project File'; otherwise you can unload the project and then open it in VS using the 'Open With' command from the Open File dialog) and verify that the reference to the dll is indeed the correct path. If it's not, correct it and reload the project.
 
Share this answer
 
Comments
Timberbird 30-Aug-12 7:46am    
I guess you refer to that post (I add this reference just to make sure TS won't be confused by "Reports.dll" and other out-of-context parts). TO TS: it's possible that you're signing your assembly - open project properties, go to "Signing" tab and check whether "Sign the assembly" checkbox is set.
If it is, then your assembly will be signed (which, among other things, means that its origin and integrity may be verified). You can read more about strong names and signing here. But your assembly can only be signed if all referenced assemblies are signed as well.
Looks like assembly "Bll" isn't signed, and you have to fix that. What can you try:
- find signed version of "Bll" assembly;
- find source code "Bll" assembly and build it yourself, signing;
- not to sign your own assembly (uncheck "Sign the assembly" checkbox);
- loading assembly dynamically could also help (not sure, never checked myself)
Thank you...This issue resolved wen i unchecked "Sign the assembly" in the project properties.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900