【发布时间】:2012-08-21 08:14:03
【问题描述】:
我的解决方案中有 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 设置、已用应用程序池的目标框架?
标签: c# linq-to-entities asp.net-4.0