我尝试将我的 ASP.NET 应用程序部署到新服务器,但收到此错误:
Could not load file or assembly 'System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
果然,在 C:\Windows\Assembly 中找不到 System.Web.Entity。但是,服务器安装了 MS .NET Framework 3.5 和 MS ASP.NET 2.0 AJAX Extensions 1.0。
这是我需要与我的应用程序一起部署的东西,还是需要安装在服务器上的东西?它不是我自己的服务器,因此如果可能的话,在我的应用程序文件夹中部署 xcopy 会更好。
(抱歉,这可能是一个真正的新手问题。)
谢谢!
最佳答案
您真的在部署服务器上使用/需要 EntityDataSource 吗?
如果没有,只需删除此行即可。
Could not load file or assembly 'System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
有关 EntityDataSource 的一些信息。
EntityDataSource 是 ASP.Net 的新数据源控件(就像 ObjectDataSource 和 SQLDataSource 以及更新的 LinqDataSource),它使得以声明方式将 ASP.NET UI 控件绑定(bind)到实体数据模型变得非常容易。
在我的 web.config 中,这在 2008/2010 和项目中都不存在。
关于asp.net - 无法加载文件或程序集 System.Web.Entity... - 我缺少什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3568196/