Solved

Assembly *.dll must be strong signed in order to be marked as a prerequisite

Posted on 2014-12-02
6
6,032 Views
Last Modified: 2015-01-02
Hello all ,
I am refrencing dll in my project and it gives this error
"Assembly *.dll must be strong signed in order to be marked as a prerequisite"
while it worked before now it doesn't work.
any suggestions ?
0
Comment
Question by:AhmedHindy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 11

Accepted Solution

by:
melmers earned 125 total points
ID: 40475805
You can try 2 things which helped me sometimes.

1.) Delete the bin and obj directories of oyur projects and then rebuild all.(Ensure that your build configuration manager has all project marked to build)

2.) Add and Remove the references you need for your projects. If you updated the files with newer
     version with filecopy it can ends in this type of error.

Do you sign & strongname you project?
If you use ClickOnce deployment try to deactivate the security settings.
0
 
LVL 10

Assisted Solution

by:Walter Padrón
Walter Padrón earned 125 total points
ID: 40476379
This happens when two projects references different version of the same assembly and the solution could be to upgrade the packages.

Also follow @melmers suggestion of delete the bin and obj folders and then Rebuild All

Best regards
0
 
LVL 12

Assisted Solution

by:topdog770
topdog770 earned 125 total points
ID: 40477638
Another option is that the signed assembly is located in the GAC and there's a local copy that's interfering with the signged version.

1) Start by removing any local copies of the DLL, if the app builds and runs ok then you've just proven this to be the problem.

if problem persists, then a more thorough clean up is required.
0
 
LVL 13

Assisted Solution

by:Naman Goel
Naman Goel earned 125 total points
ID: 40479037
My guess is that you're not working with strongly named assemblies. I've had this error when two projects reference slightly different versions of the same assembly and a more dependent project references these projects. The resolution in my case was to remove the key and version information from the assembly name in the .csproj files (it didn't matter anyway), and then do a clean build.
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40527606
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question