Help us understand the problem. What is going on with this article?

ASP.NET > ASP.NET Core > HTTP エラー 500.19 0x8007000d

More than 1 year has passed since last update.

HTTP エラー 500.19 - Internal Server Error

確かにASP.NET Core環境をインストールしたはずなんだが、500.19エラーが出る。。。
という時の対処メモです。

以下のようなエラーがでました。
HTTP エラー 500.19 - Internal Server Error
ページに関連する構成データが無効であるため、要求されたページにアクセスできません。

image

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
          <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
        </handlers>
        <aspNetCore processPath="dotnet" arguments=".\MarketingMetric.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
    </system.webServer>
</configuration>

Error 500.19 Internal server error on IIS- Stack Overflow

ASP.NET Core Module | Microsoft Docs

aspnet/AspNetCoreModule: ASP.NET Core Module for IIS and IIS Express

Windows Server Hosting bundle.

ANCM is included in the .NET Core Windows Server Hosting bundle.
https://aka.ms/dotnetcore-2-windowshosting

image

IISのハンドラーマップ > モジュールマップの追加 画面を表示します。
モジュール一覧にAspNetCoreModuleが追加されました。
image

これでうまく動けばOK
エラーがでれば以下へ

ASP.NET > ASP.NET Core > HTTP Error 502.5 - Process Failure - Qiita

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした