Could not load file or assembly 'csla, version=2.1.4.0, culture=neutral, PublicKeyToken=93be5fdc093e4c30'or one of its dependencies. The located assembly's manifest defination does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Could not load file or assembly 'csla, version=2.1.4.0, culture=neutral, PublicKeyToken=93be5fdc093e4c30'or one of its dependencies. The located assembly's manifest defination does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Old forum URL: forums.lhotka.net/forums/t/12486.aspx


Riz posted on Thursday, March 13, 2014

Hello Everyone,

We have upgraded the CSLA version from "2.1.4" to "3.5.3", after testing the csla new changes in the developer environment we recently pushed our changes to the QA environment and after pushing the changes we started getting few errors. Basically after pushing the changes to QA environment all our projects got build successfully including the upgraded CSLA project but when we try to access our site we are getting the below error:

Error:

"Could not load file or assembly 'csla, version=2.1.4.0, culture=neutral, PublicKeyToken=93be5fdc093e4c30'or one of its dependencies. The located assembly's manifest defination does not match the assembly reference. (Exception from HRESULT: 0x80131040)".

What is the actual cause of this issue? As the CSLA project has been successfully build then why after using this csla.dll refrence in other Libraries we are still getting the above issue? 

Kindly help us to resolve the above mentioned issue, as we did not got any proper solution to fix this issue till now.  

Thanks for your help in advance.

JonnyBee replied on Friday, March 14, 2014

Hi, 

You either still have assemblies that references CSLA 2.1.4 or you have assembly redirects in web.config that points to CSLA 2.1.4.

You could f.ex 

  1. first verify that you have the same assemblies (size/date/version) in your dev and QA environment
  2. then inspect app/web.config to check for redirects. 
  3. If no redirects the use a free decompiler (dotPeek, ILSpy, JustDecompile) to inspect the references in your assemblies.   
  4. and make sure that your assemblies does not exist with previous versions in GAC. 

 

Copyright (c) Marimer LLC