相关疑难解决方法(0)

没有@Html.Button!

这很奇怪.我看到@ Html.Button()的引用,但是当我输入Intellisense没有找到这样的帮助时......有下拉列表,隐藏,编辑等等,但没有按钮!

那是怎么回事?

.net html-helper htmlbutton razor asp.net-mvc-3

78
推荐指数
4
解决办法
6万
查看次数

如何在mvc 4的web.config文件中添加程序集

我有一个"MVC 4"项目,我想将一个程序集添加到web.config文件,但我不知道我应该把它放在哪里.我尝试任何方式,但我找不到解决方案.

每次我收到此错误:

您必须添加对程序集'System.Data.Entity,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的引用.

这是我的web.config文件:

    <?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=152368
  -->
<configuration>
  <connectionStrings>
    <add name="ParsGraphicEntities" connectionString="metadata=res://*/Entities.ParsGraphic.csdl|res://*/Entities.ParsGraphic.ssdl|res://*/Entities.ParsGraphic.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=ParsGraphic;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-UI.MVC.InternetApplication-2012317193118;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="webpages:Version" value="2.0.0.0" />
    <add key="webpages:Enabled" value="true" />
    <add key="PreserveLoginUrl" value="true" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc web-config asp.net-mvc-4

28
推荐指数
1
解决办法
6万
查看次数

无法加载类型'system.data.entity.design.aspnet.entitydesignerbuildprovider'

<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
Run Code Online (Sandbox Code Playgroud)

这是我的System Web.config文件的程序集

asp.net entity-framework-4

24
推荐指数
2
解决办法
2万
查看次数

VS 2008中的VS 2008,.net 3.5项目:无法加载类型... EntityDesignerBuildProvider

我正在尝试将项目从VS 2008移动到VS 2010.项目升级向导完成正常,但项目无法编译.它说:

C:\ Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config(129):错误ASPCONFIG:无法加载类型'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider'.

我选择留在.net 3.5,但从这个错误看起来它似乎是链接到框架的第4版.如果我右键单击解决方案并选择"属性",则"应用程序"选项卡上的"目标"框架将设置为.NET 3.5

我在同一台计算机上安装了VS 2008,项目编译运行正常.

我哪里错了?

entity-framework visual-studio-2010 visual-studio

6
推荐指数
1
解决办法
5182
查看次数