This occurred again, here is the output of stout:
Application startup exception: System.Exception: Plugin 'Pickup in store'. Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
---> System.Exception: Plugin 'Pickup in store'. Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied. ---> System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Nop.Core.Infrastructure.NopFileProvider.FileCopy(String sourceFileName, String destFileName, Boolean overwrite) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Infrastructure\NopFileProvider.cs:line 192
at Nop.Core.Plugins.PluginManager.ShadowCopyFile(String pluginFilePath, String shadowCopyPlugFolder) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 307
at Nop.Core.Plugins.PluginManager.PerformFileDeploy(String plug, ApplicationPartManager applicationPartManager, NopConfig config, String shadowCopyPath) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 214
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 479
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 515
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 526
at Nop.Core.Infrastructure.NopEngine.Initialize(IServiceCollection services) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Infrastructure\NopEngine.cs:line 150
at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration) in E:\nopCommerce\sources\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 56
at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in E:\nopCommerce\sources\src\Presentation\Nop.Web\Startup.cs:line 39
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
Application startup exception
System.Exception: Plugin 'Pickup in store'. Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
---> System.Exception: Plugin 'Pickup in store'. Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied. ---> System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\Plugins\bin\Nop.Plugin.Pickup.PickupInStore.dll' is denied.
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Nop.Core.Infrastructure.NopFileProvider.FileCopy(String sourceFileName, String destFileName, Boolean overwrite) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Infrastructure\NopFileProvider.cs:line 192
at Nop.Core.Plugins.PluginManager.ShadowCopyFile(String pluginFilePath, String shadowCopyPlugFolder) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 307
at Nop.Core.Plugins.PluginManager.PerformFileDeploy(String plug, ApplicationPartManager applicationPartManager, NopConfig config, String shadowCopyPath) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 214
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 479
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 515
--- End of inner exception stack trace ---
at Nop.Core.Plugins.PluginManager.Initialize(ApplicationPartManager applicationPartManager, NopConfig config) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Plugins\PluginManager.cs:line 526
at Nop.Core.Infrastructure.NopEngine.Initialize(IServiceCollection services) in E:\nopCommerce\sources\src\Libraries\Nop.Core\Infrastructure\NopEngine.cs:line 150
at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration) in E:\nopCommerce\sources\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 56
at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in E:\nopCommerce\sources\src\Presentation\Nop.Web\Startup.cs:line 39
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
Hosting environment: Production
Content root path: D:\home\site\wwwroot
Now listening on: http://127.0.0.1:8161
Application started. Press Ctrl+C to shut down.
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[11]
Hosting startup assembly exception
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.AzureAppServices.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 506.3655ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.9096ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/old-man-emu-2nd-gen-nissan-xterra-suspension-lift-kit-heavy-load?gclid=EAIaIQobChMIo6PchfOy4AIVRJNpCh3xYgCNEAkYCiABEgI-TvD_BwE
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2519ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 9.38ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 7.2287ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 POST http://www.YOURWEBSITE.com/scheduletask/runtask application/x-www-form-urlencoded 64
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.3245ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
Connection id "0HLKFRNO4DQ8L", Request id "0HLKFRNO4DQ8L:00000005": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2595ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 POST http://www.YOURWEBSITE.com/Admin/Setting/Order application/x-www-form-urlencoded 1512
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2727ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
Connection id "0HLKFRNO4DQ8L", Request id "0HLKFRNO4DQ8L:00000007": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 POST http://www.YOURWEBSITE.com/scheduletask/runtask application/x-www-form-urlencoded 58
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2151ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
Connection id "0HLKFRNO4DQ8L", Request id "0HLKFRNO4DQ8L:00000008": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 POST http://www.YOURWEBSITE.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2455ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
Connection id "0HLKFRNO4DQ8L", Request id "0HLKFRNO4DQ8L:00000009": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/Admin/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2729ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2191ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2226ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2043ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.9266ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2126ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2402ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2353ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2192ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2137ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2747ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2607ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2295ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2243ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2528ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://www.YOURWEBSITE.com/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2124ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 POST http://127.0.0.1:8161/iisintegration 0
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.2059ms 500 text/html; charset=utf-8
The only way to resolve was to restart the Azure Web app. This appears to be related to the following threads:
https://www.nopcommerce.com/boards/t/49550/an-error-occurred-while-starting-the-application.aspx?p=4
https://www.nopcommerce.com/boards/t/49851/serious-iis-application-pool-recycling-bugdesign-flaw.aspx