Unable to launch Nop 4, 502.5 Process Failed

2 years ago
Server was previously running Nop 3.8.
Installed .NET Core Windows Server Hosting bundle, restarted server.
Downloaded Nop 4 source code version, clean build and publish to folder, then uploaded to server via FTP.
Granted Modify/Read/Write permission to the folder.

Then I got this HTTP Error 502.5 - Process Failure error upon first launch.

Below are the log details from Event Viewer:
.Net Runtime
Application: Nop.Web.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeLoadException
Stack:
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(System.AggregateException ByRef)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Nop.Web.Program.Main(System.String[])



Application Error
Faulting application name: Nop.Web.exe, version: 4.0.0.0, time stamp: 0xa4368bd3
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18666, time stamp: 0x58f32841
Exception code: 0xe0434352
Fault offset: 0x00015608
Faulting process id: 0x4d50
Faulting application start time: 0x01d376790d76041d
Faulting application path: C:\Inetpub\vhosts\Nop4\Nop.Web.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: 4b2e7bc7-e26c-11e7-80de-1866da6e5f79
Faulting package full name:
Faulting package-relative application ID:


Any help appreciated, thx!!
2 years ago
This is what found in the log after enable stdout
Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Nop.Web.Program.Main(String[] args)
2 years ago
Hello,

Is this issue resolved?

I am also facing same issue when I noticed the log files:

Unhandled Exception: System.TypeLoadException: Could not load type 'System.AppContext' from assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Nop.Web.Program.Main(String[] args)


Let me know if this issue is resolved, Appreciate in case of any pointers / help which leads to resolve this issue.
2 years ago
we had the same problem. for those who encountered the same error - check whether the correct version of the framework is installed on the server.
2 years ago
Hello,

Did you check windows server iis configuration. if not than please follow this.


https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/index?tabs=aspnetcore2x.

If you follow this document thoroughly with encounter error log enable in  web config file.

Then,you will definitely solve 502.5 process failed error.

Thanks,
1 year ago
In the "Upgrade guide to nopCommerce 4.00" (*) it's written:
"All projects should target .NET Framework 4.6.1 and not .NET Core. We plan to use
.NET Core only when EF Core team starts supporting all ORM functionality from the
classic Entity Framework 6 (based on .NET Framework 4.6.1). Such as lazy loading,
etc (they plan to do it in Q1-Q2 2018). That’s the only reason why we still use Entity
Framework 6 (based on .NET Framework 4.6.1)"

I solve this issue istalling the .NET Framework 4.x.x on my server.

(https://github.com/nopSolutions/nopCommerce/releases/download/release-4.00/nopCommerce_4.00_upgrade_guide.pdf)
1 year ago
rcswit wrote:
In the "Upgrade guide to nopCommerce 4.00" (*) it's written:
"All projects should target .NET Framework 4.6.1 and not .NET Core. We plan to use
.NET Core only when EF Core team starts supporting all ORM functionality from the
classic Entity Framework 6 (based on .NET Framework 4.6.1). Such as lazy loading,
etc (they plan to do it in Q1-Q2 2018). That’s the only reason why we still use Entity
Framework 6 (based on .NET Framework 4.6.1)"

I solve this issue istalling the .NET Framework 4.x.x on my server.

(https://github.com/nopSolutions/nopCommerce/releases/download/release-4.00/nopCommerce_4.00_upgrade_guide.pdf)
.

Hope you found cause of problem.
1 year ago
I have this problem with 4.1 now. Still beta. (HTTP Error 502.5 - Process Failure) I'm using web apps in azure.

All other .net core 2.1\2.0 sites works fine, but nop does not.

I have tried installing the extension "ASP.NET Core Extensions Version 2.1.0-preview2-final" as well, but no go.



Any suggestions?
1 year ago
Hi, did you find out the cause to this?
1 year ago
aealden wrote:
Hi, did you find out the cause to this?


In my case i did have an error because of a task(keep alive) which threw an error.