Could not load assembly, Exception from HRESULT: 0x80131040

╄→尐↘猪︶ㄣ 提交于 2019-12-01 02:58:30

问题


Exception:

Could not load file or assembly 'WPFVisifire.Charts, Version=4.1.0.0, Culture=neutral, PublicKeyToken=99d724542e4db593' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

We are working with our stock exchange charting application using Visifire. We have two app versions. Online Silverlight version and desktop WPF version. I already created Silverlight application and its working well. Same code I copied in WPF application but WPF chart application throws exception.

I’m very new to dot net development. Please help.


回答1:


Are you using Windows7 OS?

I suggest you to follow the steps below.

  1. Remove reference of WPFVisifire.Charts.dll and WPFToolkit.dll (if used) from your project.
  2. Clean your project.
  3. Close the application.
  4. Right click no WPFVisifire.Charts.dll and WPFToolkit.dll(if used) then click on properties.
  5. Go to General Tab.
  6. Click on Unblock button.
  7. Now open your project in Visual Studio.
  8. Add new reference to unblocked WPFVisifire.Charts.dll and WPFToolkit.dll(if used).
  9. Compile your project and run.


来源:https://stackoverflow.com/questions/7202065/could-not-load-assembly-exception-from-hresult-0x80131040

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!