我想部署一個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