Assembly strong name

A

Alan T

I have create a class library and add it to the reference list in one of the
projects.

However, when I compile the project and got the error:
Assembly generation failed -- Referenced assembly 'ApplicationsDataAcsess'
does not have a strong name.

What is that mean?
Is my clas library should have another name? Or something inside problem?

I have other class library named as 'Users', it does not have problem.
 
S

Sascha Dietl

Hi Alan,
that just means tha the referenced assembly ApplicationDataAccess is not
signed so it doesn't have a strong name.
Since you signed your application/assembly all referenced assemblies must
also be signed.
 
A

Alan T

Hi,

I know what's happening to my solution but don't know why?
Here's my findings:

1) I found the "Sign to assembly" is unchecked in "ApplicationsDataAccess"
project
2) But this check box are checked inside other class libraries
3) May be due to I compiled the whole solution in the old days
4) Now after I created this new "ApplicationsDataAccess" have not compiled
the whole solution
 
S

Sascha Dietl

S

Sascha Dietl

yes strong named (signed) assemblies can only reference strong named assemblies,
and can only be referenced by strong named assemblies. So sign your ApplicationsDataAccess,
you can do this through the project properties, or remove all signings.
 
A

Alan T

Before I read the link referred can I ask you:
I did not check the "Sign to assembly" check box of my other class
libraries, why did they checked automatically ?
 
S

Sascha Dietl

I've never seen these checkboxes checking themselves and I really don't know
what needs to happen so they will check theirselves.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top