Answered by:
Application '/LM/W3SVC/10/ROOT' failed to start process ErrorCode = '0x80070005'

Question
-
User-2106899129 posted
Hello there,
Locally i can start the .exe of my asp.net mvc core app. Going to the browser and type http://localhost:5000 works #1.
But from the real url I got this message in the log :
Application '/LM/W3SVC/10/ROOT' with physical root 'C:\inetpub\wwwroot\...….\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\…….\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 29519, retryCounter
Try to check the log but nothing is created. Also same error (access denied) :
Warning: Could not create stdoutLogFile C:\inetpub\wwwroot\...........\httpdocs\logs\stdout_20190903015328_3008.log, ErrorCode = '0x80070005'.
I check the permissions on those folder and the TrustedInstaller is there with Full control.
Any idea will be VERY APPRECIATE. Have nice day everyone.
Tuesday, September 3, 2019 3:28 PM
Answers
-
User-2106899129 posted
Hello Rena,
I try it without success. So I decide to create a brand new project ASP.NET Core NOT targeting .NET Framework. So I create a new project using .NET Core with ASP.NET Core 2.2.
Now everything works #1 under IIS AspNetCore Module V2. The logs shows Application '.....' started the coreclr in-process successfully and my application is now up and running.
Thank you for your precious help. Have a very nice day Rena.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 13, 2019 3:30 PM
All replies
-
User711641945 posted
Hi Louis745,
Where did you deploy your application?
- If you deploy application to IIS,I suggest that you could follow the steps like below:
1.You could set stdoutLogEnabled="true" in web.config,then you could check the log.
2.If you deploy by using Azure Devops,you need to check ACL whether IIS_IUSRS and IUSR both have full control access.
More detailed solution you could refer to:https://github.com/aspnet/AspNetCore/issues/7678
- If you deploy application to Plesk,you could refer to the official document:
Best Regards,
Rena
Wednesday, September 4, 2019 2:33 AM -
User-2106899129 posted
Hello Rena,
Thank you a lot for the information but as I said even the log file cannot be created for the same reason :
Warning: Could not create stdoutLogFile C:\inetpub\wwwroot\...\httpdocs\logs\stdout_20190903015328_3008.log, ErrorCode = '0x80070005'.My application runs on Windows Server 2008 R2 under IIS.
Any help will be appreciate.
Wednesday, September 4, 2019 3:15 AM -
User711641945 posted
Hi Louis745,
Warning: Could not create stdoutLogFile C:\inetpub\wwwroot\...\httpdocs\logs\stdout_20190903015328_3008.log, ErrorCode = '0x80070005'.The common solution about this warning is that:
1.Open your web.config file and check the following code:
<aspNetCore processPath="dotnet" arguments=".\YourProjectName.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
2.Create the logs folder in your Asp.Net Core application like below:
If you have done these operation and do not work,you need ensure that IIS_IUSRS user has write permissions.
Reference:https://stackoverflow.com/a/40547942/11398810
Best Regards,
Rena
Wednesday, September 4, 2019 4:06 AM -
User-2106899129 posted
Hello Rena,
Great I create the directory and give the write permission to IIS_IUSRS. The log file is created but empty! I wonder why! My server is a 2008 R2.
This is the content of my web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\MyApp.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: f5922031-59ab-4228-9b88-b235bfb35bf4-->Wednesday, September 4, 2019 4:20 AM -
User711641945 posted
Hi Louis745,
If the application pool is named "DefaultAppPool" (just replace this text below if it is named differently)
- Open Windows Explorer and select the folder named logs.
- Right click the file and select "Properties"
- Select the "Security" tab
- Click the "Edit" and then "Add" button
- Click the "Locations" button and make sure you select the local machine. (Not the Windows domain if the server belongs to one.)
- Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box. (Don't forget to change "DefaultAppPool" here to whatever you named your application pool.)
- Click the "Check Names" button and click "OK".
- choose the DefaultAppPool you added and give the write permission to it.
Best Regards,
Rena
Thursday, September 5, 2019 8:56 AM -
User-2106899129 posted
Hello Rena,
Thanks so much to take your time about my problem.
I try what you suggest but still have the same problem : add the AppPool name of my website in the security Tab with Write. I try the same application on a Windows Server 2019 and just work fine. But I have to use it on a Windows Server 2008 R2. They must operate differently. As you said I add those lines in the web.config :
<handlerSettings>
<handlerSetting name="debugLevel" value="file" />
<handlerSetting name="debugFile" value=".\ancm.log" />
</handlerSettings>And get this :
[aspnetcorev2.dll] Initializing logs for 'C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll'. Process Id: 5512.. File Version: 12.2.19169.6. Description: IIS ASP.NET Core Module V2. Commit: e7f262e33108e92fc8805b925cc04b07d254118b.
[aspnetcorev2.dll] Loading request handler: 'C:\Program Files\IIS\Asp.Net Core Module\V2\12.2.19169.0\aspnetcorev2_outofprocess.dll'
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_outofprocess.dll] Initializing logs for 'C:\Program Files\IIS\Asp.Net Core Module\V2\12.2.19169.0\aspnetcorev2_outofprocess.dll'. Process Id: 5512.. File Version: 12.2.19169.6. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: e7f262e33108e92fc8805b925cc04b07d254118b.
[aspnetcorev2_outofprocess.dll] Starting app_offline monitoring in application 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\'
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070585 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\outprocessapplication.cpp:90
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] Starting file watcher thread
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 35340, retryCounter '1'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 15614, retryCounter '0'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\serverprocess.cpp:949
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' with multiple retries. The last try of listening port is '15614'. See previous warnings for details.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\processmanager.cpp:167
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\forwardinghandler.cpp:138
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::~FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 27216, retryCounter '1'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 28240, retryCounter '0'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\serverprocess.cpp:949
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' with multiple retries. The last try of listening port is '28240'. See previous warnings for details.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\processmanager.cpp:167
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\forwardinghandler.cpp:138
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::~FORWARDING_HANDLER
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/mywebsite.com'
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/15/ROOT'
[aspnetcorev2_outofprocess.dll] Stopping file watcher thread
[aspnetcorev2.dll] Creating handler application
[aspnetcorev2_outofprocess.dll] Starting app_offline monitoring in application 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\'
[aspnetcorev2_outofprocess.dll] Starting file watcher thread
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070585 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\outprocessapplication.cpp:90
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 24849, retryCounter '1'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 33256, retryCounter '0'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\serverprocess.cpp:949
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' with multiple retries. The last try of listening port is '33256'. See previous warnings for details.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\processmanager.cpp:167
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\forwardinghandler.cpp:138
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::~FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::FORWARDING_HANDLER
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 35498, retryCounter '1'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' at stage 'AssignProcessToJobObject', ErrorCode = '0x80070005', assigned port 12674, retryCounter '0'.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\serverprocess.cpp:949
[aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/15/ROOT' with physical root 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\' failed to start process with commandline 'C:\inetpub\wwwroot\mywebsite.com\httpdocs\MyApp.exe ' with multiple retries. The last try of listening port is '12674'. See previous warnings for details.'
End Event Log Message.
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\processmanager.cpp:167
[aspnetcorev2_outofprocess.dll] Failed HRESULT returned: 0x80070005 at d:\b\w\da744fbcc13abce\src\servers\iis\aspnetcoremodulev2\outofprocessrequesthandler\forwardinghandler.cpp:138
[aspnetcorev2_outofprocess.dll] FORWARDING_HANDLER::~FORWARDING_HANDLER
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/mywebsite.com'
[aspnetcorev2.dll] Stopping application '/LM/W3SVC/15/ROOT'
[aspnetcorev2_outofprocess.dll] Stopping file watcher thread
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/mywebsite.com'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/mywebsite.com'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/mywebsite.com'
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalStopListening
[aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::TerminateFriday, September 6, 2019 1:39 PM -
User711641945 posted
Hi Louis745,
Please modify the identity as follow:
choose your Application Pool -> right-click it and choose Advanced Settings -> change the identity ApplicationPoolIdentity to LocalSystem.
Best Regards,
Rena
Wednesday, September 11, 2019 9:49 AM -
User-2106899129 posted
Hello Rena,
I try it without success. So I decide to create a brand new project ASP.NET Core NOT targeting .NET Framework. So I create a new project using .NET Core with ASP.NET Core 2.2.
Now everything works #1 under IIS AspNetCore Module V2. The logs shows Application '.....' started the coreclr in-process successfully and my application is now up and running.
Thank you for your precious help. Have a very nice day Rena.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 13, 2019 3:30 PM