first time installation with error iisexpress.exe has exited with code 0 (0x0)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,
I download the develop branch from github, it is 4.3. I installed  VS2019 / sql server 2019 development version, it was compiled with net core 3.1 .
the first time when I installed for the first time, during installation, it exited with error code.

Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Microsoft.Hosting.Lifetime: Information: Application is shutting down...
Microsoft.AspNetCore.Mvc.RedirectToRouteResult: Information: Executing RedirectToRouteResult, redirecting to / from route Homepage.
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Information: Executed action Nop.Web.Controllers.InstallController.Index (Nop.Web) in 24841.5557ms
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint 'Nop.Web.Controllers.InstallController.Index (Nop.Web)'
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished in 24977.7803ms 302
The thread 0x6ec has exited with code 0 (0x0).
The program '[17556] iisexpress.exe' has exited with code 0 (0x0).

the web browser shows error information,  I copied the screen.

but when I connect the web site again, it was installed, seems installed successfully.
[url]url=https://1drv.ms/u/s!AvVs05LLASbvgqhvXB5JEPasWlFoGQ?e=A2Oscr[/url]
actually every time I installed nopcommerce 4.2 in linux , it also exited during installation, I also changed nginx timeout value, after installation seems good.
to show the error just: delete the database and App_data/ dataSettings.json, plugins.json files.
I do not select Create sample data, but select Create database if it doesn't exist.
4 years ago
the error screen shows here:

4 years ago
After installing nopCommerce application, it restarts itself. But unfortunately restart application feature has been broken in 4.3 development environment. You will also get same error if click restart application from admin panel.

Check this thread which is related to this issue.
4 years ago
part of log :

info: FluentMigrator.Runner.Processors.SqlServer.SqlServer2016Processor[1003]

      COMMIT TRANSACTION

info: FluentMigrator.Runner.MigrationRunner[1004]

      637200411689037680: AddOrderRewardPointsHistoryFK migrated

info: FluentMigrator.Runner.MigrationRunner[1002]

      => 0.0215033s

info: Microsoft.Hosting.Lifetime[0]

      Application is shutting down...

info: Microsoft.AspNetCore.Mvc.RedirectToRouteResult[1]

      Executing RedirectToRouteResult, redirecting to / from route Homepage.

info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]

      Executed action Nop.Web.Controllers.InstallController.Index (Nop.Web) in 23819.8395ms

info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]

      Executed endpoint 'Nop.Web.Controllers.InstallController.Index (Nop.Web)'

info: Microsoft.AspNetCore.Hosting.Diagnostics[2]

      Request finished in 23981.8588ms 302
4 years ago
mhsjaber wrote:
After installing nopCommerce application, it restarts itself. But unfortunately restart application feature has been broken in 4.3 development environment. You will also get same error if click restart application from admin panel.

Check this thread which is related to this issue.


Thanks, how to resolve it? I do not know how change as that guy said.
actually when I installed 4.2 on linux, it shows same problem.
4 years ago
Replied here.
3 years ago
During the initial install of 4.3 on development laptop using VS2019, it automatically tries to restart on localhost, then stops and returns to VS. In the VS output window I get the following extract:

'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.8\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll
'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.8\System.Xml.XmlSerializer.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x2c74 has exited with code 0 (0x0).
The thread 0x45b4 has exited with code 0 (0x0).
Exception thrown: 'System.Exception' in Nop.Web.Framework.dll

Reviewing Database Tables in SSMS, all seem to have been created.
I then start localhost again which takes me to the customer login screen without any option to enter admin mode. Even when I suffix /admin to the url, the same is shown.
My questions are:
1. Has the install fully completed. If not, how to prevent the above termination?
2. How can I get to the admin dashboard?
All this seems simple enough, but I've had no luck so far.
Any help would be appreciated.
Thanks.
3 years ago
I assume the install completed
There is no seperate Admin login as such.
Just login as a customer using the credentials enter during the install
Then there will be an Admin link at the top of the page.
Click that link
Or you can goto yourwebsite.com/Admin
3 years ago
Cheers mate. All pages working. Still can't work out why the install terminated, but heyho seems fine nonetheless.
Thanks again.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.