ASP.3.5 Error using Enterprise Library

I have a VisualStudio solution built on Vs2005 that uses the Microsoft Enterprise Data Library. Now I have converted this to Visual studio 2008. Now when I build the project I get the error as below An error occurred while creating the config section handler for DataConfiguration: Could not load file or assembly "Microsoft.Practices.EnterpriseLibrary.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = null "or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (D: \ dotnet \ Test \ Test.UI \ web.config line 4)

My fourth line of Web.Config looks like this

<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null"/>

      

I have chanegd version 2.0.0.0 to 3.5.0.0. But no result. The error I am getting. Can anyone help me solve this problem? thanks in advance

0


a source to share


1 answer


Have you checked if the public key token is really zero? You can do it with sn -T Microsoft.Practices.EnterpriseLibrary.Data.dll



+1


a source







All Articles