加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

Godaddy ASP.NET会员数据库困境

发布时间:2020-12-15 23:59:37 所属栏目:asp.Net 来源:网络整理
导读:我在godaddy上购买了一个带有2个MSSQL数据库的Windows共享主机帐户.我设置了一个来保存我的站点数据,另一个安装了aspnet成员模式来存储站点成员.该站点可以完美地显示来自第一个数据库的数据.但是,当我尝试登录或注册时,我得到了这个令人讨厌的错误 Exceptio
我在godaddy上购买了一个带有2个MSSQL数据库的Windows共享主机帐户.我设置了一个来保存我的站点数据,另一个安装了aspnet成员模式来存储站点成员.该站点可以完美地显示来自第一个数据库的数据.但是,当我尝试登录或注册时,我得到了这个令人讨厌的错误

Exception Details:
System.Configuration.Provider.ProviderException:
The SSE Provider did not find the
database file specified in the
connection string. At the configured
trust level (below High trust level),
the SSE provider can not automatically
create the database file.

我已经浏览了我的web.config并且我的2个连接字符串没有任何问题.当1是成员资格时,似乎godaddy在同时使用2个mssql数据库时遇到问题.

有谁知道解决方案或解决方法?

解决方法

我希望我的经历对每个人都有好处.基本上如果你想避免在godaddy上的aspnet成员资格问题,总是使用“LocalSqlServer”作为连接字符串.即
<providers>
    <remove name="AspNetSqlMembershipProvider" />
    <add name="AspNetSqlMembershipProvider" connectionStringName="LocalSqlServer"
        ..other attributes here... />
</providers>

然后创建“LocalSqlServer”connectionString …记得先删除它

<connectionStrings>
    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer"
        connectionString="Data Source=xxxx; Initial Catalog=xxx; User ID=xxx; Password=xxx;"
        providerName="System.Data.SqlClient" />
</connectionStrings>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读