[英]Issues when installing AspxCommerce onto GoDaddy Servers
I have been up all night trying to figure it out and when I try and install AspxCommerce onto my GoDaddy server. 我整夜都在努力寻找答案,当我尝试将AspxCommerce安装到我的GoDaddy服务器上时。 I have ran across multiple issues when trying to install this, all of the answers have been found after long research although for This last issue I am getting Configuration Error saying that I do not have any connection to 'SageFrameConnectionString'.
尝试安装此软件时,我遇到了多个问题,尽管经过长时间研究,但所有答案均已找到,尽管对于此最后一个问题,我收到配置错误,指出我与'SageFrameConnectionString'没有任何连接。 Does anybody have any thoughts on how I should go about doing this including the necessary steps to get there?
是否有人对我应该如何去做有任何想法,包括到达那里的必要步骤?
PS: Everything works great when installed locally.. PS:在本地安装时,一切正常。
web.config: web.config:
<?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>
connectionstring.config: connectionstring.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>
Actually it is not a AspxCommerce
problem. 实际上,这不是
AspxCommerce
问题。 It's a GoDaddy server problem. 这是GoDaddy服务器问题。 GoDaddy doesnt allow roles unless you use
LocalSqlServer
as your membership provider connection string.For GoDaddy you have couple of change in AspxCommerce
. 除非您使用
LocalSqlServer
作为成员资格提供程序连接LocalSqlServer
,否则GoDaddy不允许角色。 LocalSqlServer
GoDaddy,您在AspxCommerce
有几个更改。
In connectionstring.config
file : 在
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>
And In library go to SageFrame.Common\\Setting\\SystemSetting.cs
on Declaration section : 然后在库中进入“声明”部分的
SageFrame.Common\\Setting\\SystemSetting.cs
:
replace 更换
public static string SageFrameConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["SageFrameConnectionString"].ToString();
with 与
public static string SageFrameConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToString();
Note : Don't forget to rebuild library. 注意:不要忘记重建库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.