把asp.net程序发布到服务器上,得到错误
this assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

很可能是由于.net版本的设置!
你本地开发如果用.net 4.0,但在服务器上却设成了.net 2.0/.net 3.5,就会得到这个错误!
要解决,就把网站放到相应.net版本的应用池内!

相关文章:

  • 2022-01-02
  • 2021-10-16
  • 2021-08-11
  • 2022-12-23
  • 2021-12-04
  • 2021-12-18
  • 2021-08-30
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-11-04
  • 2021-12-29
  • 2021-06-29
  • 2022-12-23
相关资源
相似解决方案