小编chg*_*chg的帖子

AppHarbor上的nopCommerce.重定向循环

我正在尝试将nopCommerce应用程序部署到AppHarbor.

当我启动页面时,我遇到了运行时重定向循环.我添加了一些调试日志记录,问题似乎是Global.asax.cs中的这一部分 - > EnsureDatabaseIsInstalled():

if (!webHelper.GetThisPageUrl(false).StartsWith(installUrl, StringComparison.InvariantCultureIgnoreCase))
            {
                this.Response.Redirect(installUrl);
            }
Run Code Online (Sandbox Code Playgroud)

StartsWith比较始终为false,因为GetThisPageUrl返回 http://[name].apphb.com:14275/install

和installUrl(通过GetStoreLocation)返回 http://[name].apphb.com/install

有没有人能够让nopCommerce与AppHarbor一起工作?

asp.net asp.net-mvc nopcommerce appharbor

3
推荐指数
1
解决办法
852
查看次数

标签 统计

appharbor ×1

asp.net ×1

asp.net-mvc ×1

nopcommerce ×1