草庐IT

c# - 无法加载文件或程序集 ':This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

coder 2024-05-22 原文

我在我的解决方案中有 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.

提前致谢!

最佳答案

-转到 IIS。 -Default WebSite-> Your application Directory->Advance Settings->Application Pool-> Set your Version (Ex. ASP.NET v4.0) -刷新您的应用程序目录并浏览它。 完成了。

关于c# - 无法加载文件或程序集 ':This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12131850/

有关c# - 无法加载文件或程序集 ':This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded的更多相关文章

随机推荐