本文介绍了无法加载文件或程序集'System.IdentityModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'或其依赖项之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是mvc的新手.我刚刚安装了Visual Studio 15,当我创建一个mvc项目并运行它时,没有进行任何修改.它给了我上面提到的错误.我在另一台PC上做了同样的事情,并且可以正常工作,但是在我的系统上却给了我错误.搜索解决方案,但找不到任何特定的解决方案.所以请指导我该怎么做.

I am new to mvc. I just installed the Visual studio 15 and when i create a mvc project and run it without any modification. it gives me the above mentioned error. I did the same thing on another pc and it works but on my system it gives me the error. search for solutions but could not find any specific. so please guide me what to do.

推荐答案

无法加载文件或程序集'AAAAAAAAAA,版本= 6.0.0.0,Culture =中性,PublicKeyToken = xxxxxxxxxx"或其依赖项之一. "是一个常见错误.请尝试以下方法以解决此错误:

"Could not load file or assembly 'AAAAAAAAAA, Version=6.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxx' or one of its dependencies." is a common error. Try the following methods in order to fix this error:

方法I: 将以下密钥添加到web.config中的部分:

Method I: Add the following key to the section in your web.config:

<compilation debug="true" targetFramework="4.5" >
    <assemblies>
      <add assembly="AAAAAAAAAA, Version=4.0.0.0,
          Culture=neutral, PublicKeyToken=xxxxxxxxxx" />
    </assemblies>
</compilation>


方法II: :如果问题仍未解决,请尝试在PM Console上运行以下命令:


Method II: If the problem is not solved, try to run this command on PM Console:

安装软件包AAAAAAAAAA

希望这对您有帮助...

Hope this helps...

这篇关于无法加载文件或程序集'System.IdentityModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 21:57