Sus*_*san 15 c# linq-to-entities asp.net-4.0
我在我的解决方案中有3个项目:BL,DL和UI.这三个项目都有一个> NET 4的目标框架; 我通过查看每个项目的属性页面仔细检查了这一点.我尝试在托管环境中运行网站时收到以下错误消息,但是当我在本地运行时却没有.
Could not load file or assembly 'BL' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Run Code Online (Sandbox Code Playgroud)
提前致谢!
小智 19
- 去IIS.-Default WebSite->您的应用程序目录 - >高级设置 - >应用程序池 - >设置您的版本(例如ASP.NET v4.0) - 刷新您的应用程序目录并浏览它.完成.
Has*_*gha 14
您必须更新您的Web服务扩展以允许IIS中的框架4.0.要为ASP.NET 4.0启用Web服务扩展:
当我尝试将应用程序从.NET 3.5升级到.NET 4.5时,我收到了相同的错误。当我还原更改时(有些错误,稍后会解决),我收到错误消息:
Could not load file or assembly 'XmlSerializers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Run Code Online (Sandbox Code Playgroud)
该dll位于我项目的bin文件夹中。当我删除它时,应用程序正常运行。
归档时间: |
|
查看次数: |
71094 次 |
最近记录: |