Wednesday, July 8, 2009

Rash In Between Breasts

SQL Server 2008: Saving Changes is not permitted (Save Changes not permitted) Creating the error

Hi all,

I have not write any post and I return to the blog with this error with the Enterprise Library 4.1, which has made me pull for an hour trying to fix it:
"An error occurred
Creating the configuration section handler for dataConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of STIs dependencies. The Located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
" Thanks to the following post (
http://blogs.msdn.com/tomholl/archive/2007/04/19/avoiding-configuration-pitfalls-with-incompatible-copies-of -enterprise-library.aspx ) I found the reason for the error and its corresponding solution. in the App.config
When we go to key "\u0026lt;section name =" dataConfiguration "type =" Microsoft.Practices.EnterpriseLibrary. Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "/> we see an PublicKey Token and a number that does not match with that recorded on my machine. Solution: Put PublicKeyToken = null and ready.

A great evil, great remedies

Salu2