当前位置:网站首页>System. IO. Fileloadexception exception

System. IO. Fileloadexception exception

2022-06-12 11:48:00 ※※ Bingxin ※※

The file or assembly could not be loaded “NHibernate, Version=4.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4” Or one of its dependencies . The assembly manifest definition found does not match the assembly reference . ( Exception from HRESULT:0x80131040)
Exception details : System.IO.FileLoadException: The file or assembly could not be loaded “NHibernate, Version=4.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4” Or one of its dependencies . The assembly manifest definition found does not match the assembly reference . ( Exception from HRESULT:0x80131040)

The focus of the exception message is : The assembly manifest definition found does not match the assembly reference .

Assembly mismatch : Download and install NHibernate When downloading 4.0.4.4000, Accidentally downloaded 4.1.0.4000 edition ( I only vaguely remember how many versions I downloaded , At that time, I just wanted one more , I didn't expect to report such a mistake )

The solution is : open “ management NuGet Package ” Search for NHibernate, There is a button on the right indicating whether to uninstall or update , Click uninstall , Then download the required version again ( I use it VS2015), You can start the project again .

原网站

版权声明
本文为[※※ Bingxin ※※]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206121137214934.html