I am currently getting the following exception when trying to use the application block to verify the health of the Enterprise Library:
An error occurred while creating the configuration section handler for verification: the file or assembly "Microsoft.Practices.EnterpriseLibrary.Validation, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies could not be loaded. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C: \ Documents and Settings \ My Documents \ Visual Studio 2008 \ Projects \ Testers \ TestProject \ web.config line 12)
I know that the exception is trying to tell me, but I cannot figure out how to fix it. I only ever installed one version of Enterprise Library, and that is it (4.1.0.0), so I donβt see how it can find the wrong version, so I assume this is a dependency problem. I included the "Common", "Validation" and "ObjectBuilder2" libraries from the Enterprise Library 4.1 as references in the project, so I'm not sure what else is missing. The documentation undoubtedly indicates that this is all I need.
Is there any way to track that the problem is addiction?
If this helps, I try to use the enterprise library configuration tool to create a validation application block rule that is installed to validate data in the Entity Framework entity. I am using ASP.NET MVC in Visual Studio 2008.
Thanks for any help / direction you can provide,
Chris
c # asp.net-mvc enterprise-library validation-application-bl
Chris
source share