.

Microsoft.Practices.EnterpriseLibrary config errors

I had the following error:
>Cannot instanciate a default database in DataAccess.Common.GetDataReader – check your config file
An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0×80131040) (\src\MVC\web.config line 5)

I changed:

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

To:

<section name=”dataConfiguration” type=”Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data” requirePermission=”true” />

and problem resolved!

What's your thoughts on this?

*

Protected by WP Anti Spam