-1

当我尝试将 AspxCommerce 安装到我的 GoDaddy 服务器上时,我整晚都在努力解决这个问题。我在尝试安装它时遇到了多个问题,经过长时间的研究,所有答案都已找到,尽管对于最后一个问题,我收到配置错误,说我与“SageFrameConnectionString”没有任何连接。有人对我应该如何做这件事有任何想法,包括到达那里的必要步骤吗?

PS:在本地安装时一切正常.. 在此处输入图像描述

网络配置:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.web>
    <roleManager enabled="true" defaultProvider="SageFrameSqlRoleProvider">
      <providers>
        <clear />
        <add connectionStringName="SageFrameConnectionString" applicationName="SageFrame" name="SageFrameSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add applicationName="SageFrame" name="SageFrameWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>
  </system.web>
</configuration>

连接字符串.config:

<?xml version="1.0"?>
<connectionStrings>
  <clear />
  <add name="SageFrameConnectionString" connectionString="Data Source=;Initial Catalog=;Integrated Security=False;Persist Security Info=False;User ID=;Password=;Connect Timeout=120" providerName="System.Data.SqlClient" />
</connectionStrings>
4

1 回答 1

4

其实这不是 AspxCommerce问题。这是 GoDaddy 服务器的问题。GoDaddy 不允许角色,除非您将LocalSqlServer其用作会员提供商连接字符串。对于 GoDaddy,您在AspxCommerce.

connectionstring.config文件中:

 <connectionStrings>
      <clear />
      <add name="LocalSqlServer" connectionString="Data Source=.;Initial Catalog=YourCatlog;Integrated Security=False;Persist Security Info=False;User ID="ID";Password="PSWD";Connect Timeout=120" providerName="System.Data.SqlClient" />
 </connectionStrings>

并在库中转到SageFrame.Common\Setting\SystemSetting.cs声明部分:

代替

public static string SageFrameConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["SageFrameConnectionString"].ToString();

public static string SageFrameConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToString();

注意:不要忘记重建库。

于 2015-06-24T09:54:31.417 回答