Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies

前端 未结 1 881
刺人心
刺人心 2021-01-29 11:45

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

相关标签:
1条回答
  • 2021-01-29 12:02

    "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:

    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> 
    


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

    Install-Package AAAAAAAAAA

    Hope this helps...

    0 讨论(0)
提交回复
热议问题