【问题标题】:Unable to find the requested .Net Framework Data Provider.找不到请求的 .Net Framework 数据提供程序。
【发布时间】:2014-01-11 20:51:30
【问题描述】:

我看过几篇关于此的帖子,但似乎没有一个答案有效。

我正在尝试设置 simplemembership,但在调用 WebSecurity.InitializeDatabaseConnection(...) 时一直收到此错误

这是 ConnectionsStrings 条目:

<add name="JBarterMain" connectionString="Data Source=winsrv01;Initial Catalog=ProvausioJBarter;Persist Security Info=True;User ID=xxx;Password=xxx" providerName="System.Data.SqlClient"/>

我尝试在 .net 4.0 x64 文件夹中将以下内容添加到我的机器配置中:

<add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

我绝对无处可去。这对我来说似乎非常奇怪,因为它不能开箱即用。几个月前我有另一个项目(目前已损坏,因此我无法验证它是否仍然有效)运行良好,我无需进行任何额外配置。

有什么想法吗?

【问题讨论】:

    标签: asp.net-mvc-4 simplemembership dataprovider


    【解决方案1】:

    我写了一篇关于如何设置简单会员Here 的教程。此外,我更喜欢放弃过滤器并直接在应用程序启动时对其进行初始化

    【讨论】:

      猜你喜欢
      • 2012-06-06
      • 2013-02-18
      • 2012-04-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-24
      • 1970-01-01
      • 2013-07-05
      相关资源
      最近更新 更多