Initial error after update

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
один год назад
New York wrote:
Try this (not using IIS):
With brand new 4.50.3 (no-source) on your host server, without appsettings.json and plugins.json (but do keep the standard/included Plugins in the Plugins folder), in that no-source folder using either file explorer or command prompt, run Nop.web.exe..
Does the web start up?  If info looks OK, you should see "Now listening on: http://localhost:5000" and "Now listening on: http2://localhost:5001" (or similar).  Bring up a browser on that server, and go to above URL (you may need to use the secure one https://...).   The Install page should come up.


I tried that, and yes i get the "Now listening..." message, so it seems fine.
However, when I put that same url in a browser I get the same error: "ERR_TOO_MANY_REDIRECTS"
один год назад
(I had typo:  not http2://.  it should be https:// )
Did you use http or https ?
In any case, try again in Incognito (InPrivate) browser.
один год назад
New York wrote:
(I had typo:  not http2://.  it should be https:// )
Did you use http or https ?
In any case, try again in Incognito (InPrivate) browser.


Yes, I got the typo :-)
However the https://localhost:5001 gives me this error:
ERR_CONNECTION_REFUSED

Still having
ERR_TOO_MANY_REDIRECTS
on this: http://localhost:5000

The same thing happens in incognito mode, and in other browsers, also after clearing cookies.
один год назад
Are you using all the original files from the 'no source' version?  (Is it possible you've got something in web.config or elsewhere that could cause it to want to use SSL or some type of Remote Authentication?)
один год назад
New York wrote:
Are you using all the original files from the 'no source' version?  (Is it possible you've got something in web.config or elsewhere that could cause it to want to use SSL or some type of Remote Authentication?)


I have tried with just the No Source in an empty folder, and pointed the website to that folder in IIS Management. The website of course is an existing website, but I dont see any redirects in IIS management.
один год назад
Try the no source with the .exe
один год назад
New York wrote:
Try this (not using IIS):
With brand new 4.50.3 (no-source) on your host server, without appsettings.json and plugins.json (but do keep the standard/included Plugins in the Plugins folder), in that no-source folder using either file explorer or command prompt, run Nop.web.exe..
Does the web start up?  If info looks OK, you should see "Now listening on: http://localhost:5000" and "Now listening on: http2://localhost:5001" (or similar).  Bring up a browser on that server, and go to above URL (you may need to use the secure one https://...).   The Install page should come up.


Yes it does start up and in the end (after maybe 10 secs) this appears:

C:\NopCommerceFiles\version4-5\nopCommerce_4.50.2_NoSource_win_x64>Nop.Web.exe
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST https://demo.friliv.dk/scheduletask/runtask
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\NopCommerceFiles\version4-5\nopCommerce_4.50.2_NoSource_win_x64\
один год назад
Are you using a  "brand new" no-source ...  without appsettings.json ... ?
Because all these
   ...  Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
would imply that your pointing to a database, and in that case, your "ERR_TOO_MANY_REDIRECTS" probably means problems with your nopCommerce SSL and Store settings.

(Delete the \App_Data\  appsettings.json and plugins.json.   Run Nop.web.exe.  Let it Create Sample Data and Create Database if not exists.  Just be sure to enter a new name this new test DB; not an existing one.)
один год назад
New York wrote:
Are you using a  "brand new" no-source ...  without appsettings.json ... ?
Because all these
   ...  Start processing HTTP request POST https://demo.friliv.dk/scheduletask/runtask
would imply that your pointing to a database, and in that case, your "ERR_TOO_MANY_REDIRECTS" probably means problems with your nopCommerce SSL and Store settings.

(Delete the \App_Data\  appsettings.json and plugins.json.   Run Nop.web.exe.  Let it Create Sample Data and Create Database if not exists.  Just be sure to enter a new name this new test DB; not an existing one.)


You are right, when i do it without the 2 json files i can start localhost:5000 in a browser, and are redirected to install page.
When i then shut it down, make 1 change (adding the connectionstring to my DB) I get this error in the browser after  it redirects to https.
ERR_SSL_PROTOCOL_ERROR

Where is this redirect set?
один год назад
The next step is to adjust the Store settings in the DB (before you start the site).

First 'save' the current values
SELECT [Url], [SslEnabled],  [Hosts] FROM Store

Then, update to disable SSL, and set for 'localhost'
UPDATE Store SET
    [Url] = 'http://localhost:5000/',
    [SslEnabled] = 0,
    [Hosts] = 'localhost'
  WHERE id = 1

Then use Nop.Web.exe to start the site, and browse to http://localhost:5000
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.