HTTP Error 502.5 - Process Failure

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
When i installed No source zip folder to my server windows 2008 R2 Service Package 1, after installed Microsoft .Net 2.0.6 windows server hosting bundle, .Net Core Runtime 2.0.6, i had HTTP Error 502.5 - Process Failure, on the log, the message is:


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)

I checked the posts on the forum and some others on google, somebody suggested it might be framework version problem. therefore, i installed framework 7, then the error messgae is:

An error occurred while starting the application.


.NET Framework 4.7.2558.0 X86 v4.0.0.0    |   Microsoft.AspNetCore.Hosting version 2.0.0-rtm-26452    |    Microsoft Windows 6.1.7601 S    |   Need help?  

Any idea?

Thanks,
6 years ago
Hello,

Please don't duplicate forum post.

We as nop society should follow standards.

You can find same post here.

https://www.nopcommerce.com/boards/t/49449/nop-40-http-error-5025-process-failure.aspx
6 years ago
Dear sk5202, yes, i understand and i read through several times of those posts, but it didn't solve the problems.
Thanks.
6 years ago
anthonycma wrote:
Dear sk5202, yes, i understand and i read through several times of those posts, but it didn't solve the problems.
Thanks.


Ok no problem.

Did you enable log error by set stdlog= true at web config?
6 years ago
Thanks for your reply. Yes, and the error message is:

Application startup exception: System.IO.FileLoadException: Could not load file or assembly 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.AppDomain.Load(AssemblyName assemblyRef)
   at Nop.Core.Infrastructure.AppDomainTypeFinder.LoadMatchingAssemblies(String directoryPath) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\AppDomainTypeFinder.cs:line 126
   at Nop.Core.Infrastructure.WebAppTypeFinder.GetAssemblies() in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\WebAppTypeFinder.cs:line 54
   at Nop.Core.Infrastructure.NopEngine.ConfigureServices(IServiceCollection services, IConfigurationRoot configuration) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\NopEngine.cs:line 184
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfigurationRoot configuration) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 51
   at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Presentation\Nop.Web\Startup.cs:line 44
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()


crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
      Application startup exception
System.IO.FileLoadException: Could not load file or assembly 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.AppDomain.Load(AssemblyName assemblyRef)
   at Nop.Core.Infrastructure.AppDomainTypeFinder.LoadMatchingAssemblies(String directoryPath) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\AppDomainTypeFinder.cs:line 126
   at Nop.Core.Infrastructure.WebAppTypeFinder.GetAssemblies() in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\WebAppTypeFinder.cs:line 54
   at Nop.Core.Infrastructure.NopEngine.ConfigureServices(IServiceCollection services, IConfigurationRoot configuration) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Libraries\Nop.Core\Infrastructure\NopEngine.cs:line 184
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfigurationRoot configuration) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 51
   at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in E:\nopCommerce\downloads.nopcommerce.com\nopCommerce_4.00_Source\Presentation\Nop.Web\Startup.cs:line 44
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()


Hosting environment: Production
Content root path: D:\vhosts\yingguofeng.com\httpdocs
Now listening on: http://localhost:24496
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://www.yingguofeng.com/  
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 75.6647ms 500 text/html; charset=utf-8
6 years ago
Might be this post will helpful.

https://www.nopcommerce.com/boards/t/49492/could-not-load-file-or-assembly-nuglify.aspx
6 years ago
Yes, it did help. I unlocked the concerning dlls and got the installation page.
Thanks.
6 years ago
anthonycma wrote:
Yes, it did help. I unlocked the concerning dlls and got the installation page.
Thanks.
.

Your welcome..
Enjoy with v4.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.