简体   繁体   English

ASP加载程序集(dll)错误

[英]ASP loading assembly(dll) error

I have an ASP application and I am using the functionality of exporting to Word ( from my RadEditor ). 我有一个ASP应用程序,正在使用从RadEditor导出到Word的功能。

Now I have the following dll and I have placed it in the right folder from where the system should reference it and I want my system to reference only this version of dll :- 现在,我有了以下dll,并将其放在系统应引用它的正确文件夹中,并且我希望我的系统仅引用此版本的dll:-

Telerik.Windows.Documents.Core.dll  
Version 2016.3.1021.40 

But whenever I am doing exporting to word it is throwing the below error :- 但是,每当我导出到单词时,都会抛出以下错误:-

Could not load file or assembly 'Telerik.Windows.Documents.Core, Version=2015.3.930.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Now can anyone please advise why my system is pointing to Version=2015.3.930.45 when I have Version 2016.3.1021.40 , and I did not keep any other version of that dll except the Version 2016.... anywhere in my entire project or what can be done in this situation . 现在任何人都可以告诉我为什么我拥有Version 2016.3.1021.40 ,我的系统为何指向Version=2015.3.930.45 ,并且除了整个Version 2016....之外,我没有保留该dll的任何其他版本。在这种情况下可以做到的。 ThankYou ! 谢谢 !

You can try any of the following: 您可以尝试以下任何一种方法:

  1. The reference in the config file entry is still pointing to old version. 配置文件条目中的引用仍指向旧版本。 Try to remove the dll and clear the entry in config and re-add 尝试删除dll并清除config中的条目,然后重新添加
  2. Sometimes cleaning the solution and re-building should simply fix this. 有时,清洁溶液并重新构建应该可以解决此问题。 (you can try cleaning bin and obj folders manually before doing this) (您可以尝试在执行此操作之前手动清理bin和obj文件夹)
  3. Remove Temporary Files C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files 删除临时文件C:\\ Windows \\ Microsoft.NET \\ Framework \\ v4.0.30319 \\ Temporary ASP.NET文件
  4. Or any other Telerik DLL which has dependency on this is still using the older version. 或依赖于此的任何其他Telerik DLL仍在使用旧版本。 Try to update all the DLLs related to Telerik Or try to use the DLLs of same versions 尝试更新与Telerik相关的所有DLL,或者尝试使用相同版本的DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM