我已经关注了检查machine.config文件的帖子以删除额外的内容但它仍然无法正常工作。这些是以下错误消息。
[ArgumentException:无法找到请求的.Net Framework数据 供应商。它可能未安装。]
- System.Web.Providers.ModelHelper.CreateEntityConnection(ConnectionStringSettings setting,String csdl,String ssdl,String msl)+413
System.Web.Providers.ModelHelper.CreateMembershipEntities(ConnectionStringSettings 设置)+51
System.Web.Providers.DefaultMembershipProvider.Membership_CreateUser(字符串 applicationName,String userName,String password,String salt,
String email,String passwordQuestion,String passwordAnswer,Boolean isApproved,DateTime& createDate,Boolean uniqueEmail,Int32
passwordFormat,Object& providerUserKey)+314System.Web.Providers.DefaultMembershipProvider.CreateUser(String username,String password,String email,String passwordQuestion,
String passwordAnswer,Boolean isApproved,Object providerUserKey,
MembershipCreateStatus&安培;状态)+1252System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser()+ 409
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e)+221
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source,EventArgs e)+584
System.Web.UI.Control.RaiseBubbleEvent(Object source,EventArgs args)+84
- System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)
3804
我正在使用IIS 7将使用C#在Visual Studio 2013中的Web应用程序项目发布到本地服务器。谢谢!
答案 0 :(得分:0)
尝试使用以下代码替换web.config中的<entityFramework>
部分:
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlCeConnectionFactory, EntityFramework">
<parameters>
<parameter value="System.Data.SqlServerCe.4.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="System.Data.SqlServerCe.4.0" type="System.Data.Entity.SqlServerCompact.SqlCeProviderServices, EntityFramework.SqlServerCompact" />
</providers>
</entityFramework>
答案 1 :(得分:0)
您需要在服务器上安装SQL Compact MSI,从此处下载:http://www.microsoft.com/en-us/download/details.aspx?id=30709