Solved

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

Posted on 2014-12-02
6
3,795 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
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 45

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now