-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
We have .net core 3.1.6 web api application hosted in IIS with in process, but the application shuts down randomly. The environment is load balancing of two virtual servers and codes are in a NAS server.
- App Pool Recycle(WAS) events show that An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process has requested a recycle.
- the event logs show that our application was recycled after detecting app_offline.htm. our application was keep on recycled over a period of time. Then we get 503 Service Unavailable Error. I confirm that there is no app_offline.htm in publish folder or subfolder.
- the aspnetcore-debug.log shows that F:\workspace_work\1\s\src\Servers\IIS\AspNetCoreModuleV2\RequestHandlerLib\filewatcher.cpp:303 Operation failed with LastError: 1450 HR: 0x800705aa
- the aspnetcore-debug.log shows that Received app_offline notification in application
- the aspnetcore-debug.log shows that many OnGlobalConfigurationChanges as ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
- we catch errors that the application can not get configuration saved in the appsettings.json in the startup.
Please refer to the following detailed logs
App Pool Recycle(WAS) events show that An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process has requested a recycle.
Level Date and Time Source Event ID Task Category
Information 7/28/2020 1:52:47 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '4580' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:52:22 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '9556' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:51:46 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '9120' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:51:46 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '9120' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:51:26 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '8304' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:50:51 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '1272' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:50:43 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '7404' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:50:25 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '9352' serving application pool 'XXX' has requested a recycle.
Information 7/28/2020 1:50:07 PM Microsoft-Windows-WAS 5078 None An ISAPI reported an unhealthy condition to its worker process. Therefore, the worker process with process id of '7244' serving application pool 'XXX' has requested a recycle.
But the event logs show that our application 'XXX' was recycled after detecting app_offline.htm. It keep on recycling after detecting app_offline.htm in a short time.
Level Date and Time Source Event ID Task Category
Information 7/28/2020 1:50:51 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/Xxx' has shutdown.
Information 7/28/2020 1:50:48 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:50:48 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:50:44 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:50:40 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:50:40 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:50:25 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:50:21 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:50:21 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:50:09 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:50:05 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:50:05 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:49:44 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:49:40 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:49:40 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:49:24 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:49:21 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:49:21 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:49:15 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:49:11 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:49:11 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:49:04 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:49:01 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:49:01 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:48:46 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:48:42 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:48:41 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:48:37 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:48:34 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:48:34 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:48:27 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
Information 7/28/2020 1:48:23 PM IIS AspNetCore Module V2 1012 None Application 'Xxx' was recycled after detecting app_offline.htm.
Information 7/28/2020 1:48:23 PM IIS AspNetCore Module V2 1032 None Application 'Xxx' started successfully.
Information 7/28/2020 1:48:00 PM IIS AspNetCore Module V2 1033 None Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.
The stdout log is
Unhandled exception. System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at Microsoft.Extensions.Hosting.Internal.Host.StopAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.WaitForShutdownAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at Xxx.Web.Program.Main(String[] args) in Xxx\Program.cs:line 50
the aspnetcore-debug.log
[aspnetcorev2_inprocess.dll] Initializing logs for 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'. Process Id: 3852.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 62c098b.
[aspnetcorev2_inprocess.dll] Waiting for initialization
[aspnetcorev2_inprocess.dll] Starting in-process worker thread
[aspnetcorev2_inprocess.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Known dotnet.exe location: 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2_inprocess.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2_inprocess.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2_inprocess.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2_inprocess.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2_inprocess.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_DETAILEDERRORS=true
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_ENVIRONMENT=Production
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_HTTPAUTH=anonymous;
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_PHYSICAL_PATH=\\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2_inprocess.dll] Initial Dll directory: '', current directory: 'c:\windows\system32\inetsrv'
[aspnetcorev2_inprocess.dll] Setting dll directory to c:\windows\system32\inetsrv
[aspnetcorev2_inprocess.dll] Setting current directory to \\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] In-process callbacks set
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' started successfully.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Starting app_offline monitoring in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/11/ROOT'
[aspnetcorev2_inprocess.dll] Stopping CLR
[aspnetcorev2_inprocess.dll] Starting shutdown sequence 0
[aspnetcorev2_inprocess.dll] Starting file watcher thread
[aspnetcorev2_inprocess.dll] F:\workspace_work\1\s\src\Servers\IIS\AspNetCoreModuleV2\RequestHandlerLib\filewatcher.cpp:303 Operation failed with LastError: 1450 HR: 0x800705aa
[aspnetcorev2_inprocess.dll] Received app_offline notification in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' was recycled after detecting app_offline.htm.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Waiting for 1 requests to drain
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Drained all requests, notifying managed.
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Managed application exited with code 0
[aspnetcorev2_inprocess.dll] Clr thread wait ended: clrThreadExited: 1
[aspnetcorev2_inprocess.dll] Canceling standard stream pipe reader
[aspnetcorev2_inprocess.dll] Event Log: 'Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Stopping in-process worker thread
[aspnetcorev2_inprocess.dll] Stopping file watcher thread
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/11/ROOT'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalStopListening
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::Terminate
[aspnetcorev2.dll] Initializing logs for 'C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll'. Process Id: 9724.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2. Commit: 62c098b.
[aspnetcorev2.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2.dll] Known dotnet.exe location: ''
[aspnetcorev2.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2.dll] Resolving absolute path to dotnet.exe from 'dotnet'
[aspnetcorev2.dll] Invoking where.exe to find dotnet.exe
[aspnetcorev2.dll] where.exe invocation returned: 'C:\Program Files\dotnet\dotnet.exe
C:\Program Files (x86)\dotnet\dotnet.exe
'
[aspnetcorev2.dll] Current process bitness type detected as isX64=1
[aspnetcorev2.dll] Processing entry 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Binary type 6
[aspnetcorev2.dll] Found dotnet.exe via where.exe invocation at 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2.dll] Canceling standard stream pipe reader
[aspnetcorev2.dll] Loading request handler: 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2_inprocess.dll] Initializing logs for 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'. Process Id: 9724.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 62c098b.
[aspnetcorev2_inprocess.dll] Waiting for initialization
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2_inprocess.dll] Starting in-process worker thread
[aspnetcorev2_inprocess.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Known dotnet.exe location: 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2_inprocess.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2_inprocess.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2_inprocess.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2_inprocess.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2_inprocess.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_DETAILEDERRORS=true
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_ENVIRONMENT=Production
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_HTTPAUTH=anonymous;
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_PHYSICAL_PATH=\\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2_inprocess.dll] Initial Dll directory: '', current directory: 'c:\windows\system32\inetsrv'
[aspnetcorev2_inprocess.dll] Setting dll directory to c:\windows\system32\inetsrv
[aspnetcorev2_inprocess.dll] Setting current directory to \\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] In-process callbacks set
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' started successfully.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Starting app_offline monitoring in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Starting file watcher thread
[aspnetcorev2_inprocess.dll] Received app_offline notification in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] F:\workspace_work\1\s\src\Servers\IIS\AspNetCoreModuleV2\RequestHandlerLib\filewatcher.cpp:303 Operation failed with LastError: 1450 HR: 0x800705aa
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' was recycled after detecting app_offline.htm.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Stopping CLR
[aspnetcorev2_inprocess.dll] Starting shutdown sequence 0
[aspnetcorev2_inprocess.dll] Waiting for 1 requests to drain
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Drained all requests, notifying managed.
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2_inprocess.dll] Managed application exited with code 0
[aspnetcorev2_inprocess.dll] Clr thread wait ended: clrThreadExited: 1
[aspnetcorev2_inprocess.dll] Canceling standard stream pipe reader
[aspnetcorev2_inprocess.dll] Event Log: 'Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Stopping in-process worker thread
[aspnetcorev2_inprocess.dll] Stopping file watcher thread
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalStopListening
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::Terminate
[aspnetcorev2.dll] Initializing logs for 'C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll'. Process Id: 4876.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2. Commit: 62c098b.
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2.dll] Known dotnet.exe location: ''
[aspnetcorev2.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2.dll] Resolving absolute path to dotnet.exe from 'dotnet'
[aspnetcorev2.dll] Invoking where.exe to find dotnet.exe
[aspnetcorev2.dll] where.exe invocation returned: 'C:\Program Files\dotnet\dotnet.exe
C:\Program Files (x86)\dotnet\dotnet.exe
'
[aspnetcorev2.dll] Current process bitness type detected as isX64=1
[aspnetcorev2.dll] Processing entry 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Binary type 6
[aspnetcorev2.dll] Found dotnet.exe via where.exe invocation at 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2.dll] Canceling standard stream pipe reader
[aspnetcorev2.dll] Loading request handler: 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_inprocess.dll] Initializing logs for 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'. Process Id: 4876.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 62c098b.
[aspnetcorev2_inprocess.dll] Waiting for initialization
[aspnetcorev2_inprocess.dll] Starting in-process worker thread
[aspnetcorev2_inprocess.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Known dotnet.exe location: 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2_inprocess.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2_inprocess.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2_inprocess.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2_inprocess.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2_inprocess.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_DETAILEDERRORS=true
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_ENVIRONMENT=Production
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_HTTPAUTH=anonymous;
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_PHYSICAL_PATH=\\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2_inprocess.dll] Initial Dll directory: '', current directory: 'c:\windows\system32\inetsrv'
[aspnetcorev2_inprocess.dll] Setting dll directory to c:\windows\system32\inetsrv
[aspnetcorev2_inprocess.dll] Setting current directory to \\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] In-process callbacks set
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' started successfully.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Starting app_offline monitoring in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Starting file watcher thread
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/11/ROOT'
[aspnetcorev2_inprocess.dll] Received app_offline notification in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] F:\workspace_work\1\s\src\Servers\IIS\AspNetCoreModuleV2\RequestHandlerLib\filewatcher.cpp:303 Operation failed with LastError: 1450 HR: 0x800705aa
[aspnetcorev2_inprocess.dll] Stopping CLR
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' was recycled after detecting app_offline.htm.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Starting shutdown sequence 0
[aspnetcorev2_inprocess.dll] Waiting for 1 requests to drain
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Drained all requests, notifying managed.
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_inprocess.dll] Managed application exited with code 0
[aspnetcorev2_inprocess.dll] Clr thread wait ended: clrThreadExited: 1
[aspnetcorev2_inprocess.dll] Canceling standard stream pipe reader
[aspnetcorev2_inprocess.dll] Event Log: 'Application 'MACHINE/WEBROOT/APPHOST/XXX' has shutdown.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Stopping in-process worker thread
[aspnetcorev2_inprocess.dll] Stopping file watcher thread
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/11/ROOT'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/XXX'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalStopListening
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::Terminate
[aspnetcorev2.dll] Initializing logs for 'C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll'. Process Id: 4444.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2. Commit: 62c098b.
[aspnetcorev2.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2.dll] Known dotnet.exe location: ''
[aspnetcorev2.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2.dll] Resolving absolute path to dotnet.exe from 'dotnet'
[aspnetcorev2.dll] Invoking where.exe to find dotnet.exe
[aspnetcorev2.dll] where.exe invocation returned: 'C:\Program Files\dotnet\dotnet.exe
C:\Program Files (x86)\dotnet\dotnet.exe
'
[aspnetcorev2.dll] Current process bitness type detected as isX64=1
[aspnetcorev2.dll] Processing entry 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Binary type 6
[aspnetcorev2.dll] Found dotnet.exe via where.exe invocation at 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2.dll] Canceling standard stream pipe reader
[aspnetcorev2.dll] Loading request handler: 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_inprocess.dll] Initializing logs for 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.6\aspnetcorev2_inprocess.dll'. Process Id: 4444.. File Version: 13.1.20169.6. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 62c098b.
[aspnetcorev2_inprocess.dll] Waiting for initialization
[aspnetcorev2_inprocess.dll] Starting in-process worker thread
[aspnetcorev2_inprocess.dll] Resolving hostfxr parameters for application: '.\Xxx.Web.exe' arguments: '.\Xxx.Web.dll' path: '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Known dotnet.exe location: 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Process path '.\Xxx.Web.exe' is not dotnet, treating application as standalone or portable with bootstrapper
[aspnetcorev2_inprocess.dll] Checking application.dll at '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Checking hostfxr.dll at '\\ccc\WWW\xxx-svc.\hostfxr.dll'
[aspnetcorev2_inprocess.dll] hostfxr.dll found app local at '\\ccc\WWW\xxx-svc.\hostfxr.dll', treating application as portable with launcher
[aspnetcorev2_inprocess.dll] Resolving absolute path to hostfxr.dll from 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] hostfxr.dll located at 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll'
[aspnetcorev2_inprocess.dll] Parsed hostfxr options: dotnet location: 'C:\Program Files\dotnet\dotnet.exe' hostfxr path: 'C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll' arguments:
[aspnetcorev2_inprocess.dll] Argument[0] = 'C:\Program Files\dotnet\dotnet.exe'
[aspnetcorev2_inprocess.dll] Argument[1] = '\\ccc\WWW\xxx-svc.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Argument[2] = '.\Xxx.Web.dll'
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_DETAILEDERRORS=true
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_ENVIRONMENT=Production
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_HTTPAUTH=anonymous;
[aspnetcorev2_inprocess.dll] Setting environment variable ASPNETCORE_IIS_PHYSICAL_PATH=\\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] Loading hostfxr from location C:\Program Files\dotnet\host\fxr\3.1.6\hostfxr.dll
[aspnetcorev2_inprocess.dll] Initial Dll directory: '', current directory: 'c:\windows\system32\inetsrv'
[aspnetcorev2_inprocess.dll] Setting dll directory to c:\windows\system32\inetsrv
[aspnetcorev2_inprocess.dll] Setting current directory to \\ccc\WWW\xxx-svc
[aspnetcorev2_inprocess.dll] In-process callbacks set
[aspnetcorev2_inprocess.dll] Event Log: 'Application '\\ccc\WWW\xxx-svc' started successfully.'
End Event Log Message.
[aspnetcorev2_inprocess.dll] Starting app_offline monitoring in application '\\ccc\WWW\xxx-svc'
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Starting file watcher thread
[aspnetcorev2_inprocess.dll] Removing Request 0
[aspnetcorev2_inprocess.dll] Adding request. Total Request Count 1
[aspnetcorev2_inprocess.dll] Removing Request 0
We catch errors that Configuration["EmailServiceUrl"] is null
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddHttpContextAccessor();
services.AddScoped(option => new EmailServiceClient(EmailServiceClient.EndpointConfiguration.BasicHttpBinding_IEmailService, Configuration["EmailServiceUrl"]));
}