【发布时间】:2012-01-27 16:02:42
【问题描述】:
我正在尝试将 nopCommerce 应用程序部署到 AppHarbor。
但是,当我启动页面时,我会遇到运行时重定向循环。我添加了一些调试日志记录,问题似乎出在 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 一起工作?
【问题讨论】:
标签: asp.net asp.net-mvc nopcommerce appharbor