What's the deal here

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to compile my project with
'Microsoft.Practices.EnterpriseLibrary.Data' and I am getting the error
message 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong
name. Where can I find info on solving this? Is there a specific reason why
they didn't sign this?

Thanks
 
Hi Chris,

I am trying to compile my project with
'Microsoft.Practices.EnterpriseLibrary.Data' and I am getting the error
message 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a
strong
name. Where can I find info on solving this? Is there a specific reason
why
they didn't sign this?

"They" (Microsoft) can't sign it. Only the person compiling the code can
sign it... and that's you. Also, it doesn't need to be signed unless a
signed component is calling it. Since you added this constraint, it is up
to you to sign the code.

It's pretty simple, really. Create the SNK file using the SN utility:
http://msdn.microsoft.com/library/d...ide/html/cpconAssigningAssemblyStrongName.asp

Then name the SNK file in the project attributes
http://msdn.microsoft.com/library/d...lectionAssemblyKeyFileAttributeClassTopic.asp

Good luck,

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 
Hello Chris,
I am trying to compile my project with
'Microsoft.Practices.EnterpriseLibrary.Data' and I am getting the
error message 'Microsoft.Practices.EnterpriseLibrary.Data' does not
have a strong name. Where can I find info on solving this? Is there a
specific reason why they didn't sign this?

That's actually a FAQ.
You can get the info you need at http://channel9.msdn.com/wiki/default.aspx/Channel9.EnterpriseLibraryFAQ
or in EntLib's message board at http://www.gotdotnet.com/codegaller....aspx?id=295a464a-6072-4e25-94e2-91be63527327

Fernando
 
Hi,
I tried doing that but I get the error Cyptrographic failure while singning
assembly....error reading key file mykey.snk --The system cannot find the
file specified.

Any other ideas?

Thanks
 
Hi,
Do I need to sign all the assemblies or just the data? Also do I have to
copy them to the /bin folder after they are signed? I only need to use the
data.dll.

Thanks
 
Back
Top