Answered by:
“Unable to emit assembly: Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data”

Question
-
Hi,
I created a class library named ccard which uses enterprise library for database access.
I tested it with the website it is working fine.
Our requirement is to use this as .net com (dll) and refer it in an asp application.
Here comes the problem for me.
This needs all the dlls to be strong named.
So I signed the ccard library using snk tool and complied (build).
It is throwing below error”
“Unable to emit assembly: Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data”
So I tried to strong name the enterprise library - 'Microsoft.Practices.EnterpriseLibrary.Data and also other dlls present in the solution . but it doesn’t work it out.
So referred some websites to string the 'Microsoft.Practices.EnterpriseLibrary.Data”
http://mvwood.com/blog/adventures-in-strong-names-with-enterprise-library/
http://www.codeproject.com/KB/sharepoint/MSEL_in_Sharepoint.aspx?display=Print
http://www.codeplex.com/entlib/Release/ProjectReleases.aspx?ReleaseId=1339
It is also not working out.
Please help me out. It is a top priority work for me.
Please help me how to strong name the Enterprise Library dlls and usage of it in our own class library.
Thanks in advance
Eswaa
Thursday, January 29, 2009 1:20 PM
Answers
-
Did you try to use the 'Strong Naming Guidance Package' that is shipped with the ETL?
If not, open the project('Strong Naming Guidance Package') which is situated in the ETL directory and compile/build it. after that run the msi/exe created after building it.
- Proposed as answer by Molehe Wednesday, February 11, 2009 8:29 AM
- Marked as answer by Esther FanMicrosoft employee Saturday, September 11, 2010 4:44 AM
Wednesday, February 11, 2009 8:29 AM
All replies
-
Did you try to use the 'Strong Naming Guidance Package' that is shipped with the ETL?
If not, open the project('Strong Naming Guidance Package') which is situated in the ETL directory and compile/build it. after that run the msi/exe created after building it.
- Proposed as answer by Molehe Wednesday, February 11, 2009 8:29 AM
- Marked as answer by Esther FanMicrosoft employee Saturday, September 11, 2010 4:44 AM
Wednesday, February 11, 2009 8:29 AM -
my scenario was that i got a project with 11 class libraries in that, and one webservice project , what happened when i took get latest, i got same error not loading an assemblies of microsoft enterprise library,
i installed Microsoft enterprise library and reference to project where i need to add dll , i.e. Microsoft.Practices.EnterpriseLibrary.Common. but when i add reference i was still getting this erorr. i recycle the iis pool but that didnt work.
solution : remove all the reference dll from the web service application and compile and also update the public token key in your web config to your all enterprise library referencing dll.
http://www.abdulazizfarooqi.wordpress.com BizTalk Developer UBL Transformation- Proposed as answer by AbdulAzizFarooqi Saturday, April 16, 2011 8:25 AM
Saturday, April 16, 2011 8:25 AM