我想部署一个nopCommerce应用程序到AppHarbor。AppHarbor上的nopCommerce。重定向循环
当我开始页面时,我遇到了一个运行时重定向循环。我平添了几分调试日志记录和问题似乎是这部分中的Global.asax.cs - > EnsureDatabaseIsInstalled():
if (!webHelper.GetThisPageUrl(false).StartsWith(installUrl, StringComparison.InvariantCultureIgnoreCase))
{
this.Response.Redirect(installUrl);
}
StartsWith比较始终是假的,因为 GetThisPageUrl返回 http://[name].apphb.com:14275/install
和installUrl(通过GetStoreLocation)返回 http://[name].apphb.com/install
任何人都可以使nopCommerce与AppHarbor一起工作吗?
我通过正则表达式感谢您的建议移除的端口。解决了这个问题,但有大约十几个人。我想我会放弃在AppHarbor上使用Nop的实验 – chg 2011-12-26 10:34:06