2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ASP.NET > aspcore2 > HTTP Error 502.5 - Process Failure

Last updated at Posted at 2017-11-15

HTTP Error 502.5 - Process Failure が出る時の対処

デプロイしたら以下のような画面がデた
image

HTTP Error 502.5 - Process Failure 
Common causes of this issue: 
The application process failed to start 
The application process started but then stopped 
The application process started but failed to listen on the configured port 
 
Troubleshooting steps: 
Check the system event log for error messages 
Enable logging the application process' stdout messages 
Attach a debugger to the application process and inspect 
 For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681 

イベントログを見ても以下のような感じ

Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/APP' with physical root 'C:\ASP_APP\public_html' failed to start process with commandline 'dotnet .\app.Web.dll', ErrorCode = '0x80004005 : 8000808c.

試しに、コマンドプロンプトで以下を動かしてみた。

dotnet .\app.Web.dll

エラーが表示された!

Error:
  An assembly specified in the application dependencies manifest (app.Web.deps.json) was not found:
    package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1'
    path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
  This assembly was expected to be in the local runtime store as the application
 was published using the following target manifest files: aspnetcore-store-2.0.3.xml

どうやら一部のDLLが無い模様

というかNugetからcore2のアップデートをしてしまっていた模様
以下から最新のランタイムをダウンロードする
https://github.com/dotnet/core/blob/master/release-notes/download-archive.md
https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.3.md

しかし肝心の がランタイムの中に入っていない模様orz
image

しょうがないのでSDKをインストール
image

※サーバーの再起動は不要のようです。

試しにdotnetコマンドを動かしてみます。

C:\ASP_\apps\public_html>dotnet .\app.Web.dll
Hosting environment: Production
Content root path: C:\ASP_\apps\public_html
Now listening on: http://localhost:5000
lication started. Press Ctrl+C to shut down.
lication is shutting down...

動いたっぽいです。

実際にブラウザでアクセスしてみると、
表示されました!

image

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?