ASP.NET mvc 遇见的问题

1.数据库配置 

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid

Web.config 中进行配置

2.DLL引用

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0012: 类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义。必须添加对程序集“System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。
出现这个错误的原因是Web.config配置文件的原因。
解决办法:
在web.config中的<system.web>节点下的<system.web>节点下的<assemblies>中添加:
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

3. form提交后在controller中获取 : NameValueCollection form=  Request.Form;

4. 返回结果数据无刷新问题

posted @ 2013-10-31 10:18  Starry.Liu  阅读(220)  评论(0编辑  收藏  举报