asp.net - 无法加载文件或程序集 System.Web.Entity... - 我缺少什么?

标签 asp.net

我尝试将我的 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)到实体数据模型变得非常容易。

更多信息
http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/05/12/EntityDataSource-Entity-Data-Source.aspx

在我的 web.config 中,这在 2008/2010 和项目中都不存在。

关于asp.net - 无法加载文件或程序集 System.Web.Entity... - 我缺少什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3568196/

相关文章:

c# - Native Assembly Binding fails for ASP.NET解决方案

c# - 如何在标签中显示日期

asp.net - 如何在ASP下拉菜单中设置按钮样式

asp.net - 交易明细中的Paypal数量错误

c# - 正则表达式模式帮助

c# - 引用 AssemblyInfo.cs 中的项目时发布预编译的 ASP.NET 失败

javascript - jquery 数据元素的语法

c# - SQL 数据库中的单选按钮值

javascript - asp.net mvc中物理文件的临时url

c# - 无法将类型为 'System.DBNull' 的对象转换为类型 'System.String`