2017-12-10 12 views
0

kestrelサーバーでASP.NET Coreの角型テンプレートを実行しようとしています。 ASP.NETで完璧に動作しますが、Visual Studioの起動設定をIIS Expressからプロジェクト名に変更すると、ログが表示されるコマンドウィンドウが開きますが、ブラウザは404エラーを返します。これは私のlaunchsettingsがどのように見えるかです:Kestrelサーバー上でASP.NET Core Angularテンプレートを実行していますか?

{ 
    "iisSettings": { 
    "windowsAuthentication": false, 
    "anonymousAuthentication": true, 
    "iisExpress": { 
     "applicationUrl": "http://localhost:59994/", 
     "sslPort": 0 
    } 
    }, 
    "profiles": { 
    "IIS Express": { 
     "commandName": "IISExpress", 
     "environmentVariables": { 
     "ASPNETCORE_ENVIRONMENT": "Development" 
     } 
    }, 
    "Sankini": { 
     "commandName": "Project", 
     "environmentVariables": { 
     "ASPNETCORE_ENVIRONMENT": "Development" 
     } 
    }, 
    "Production": { 
     "commandName": "IISExpress" 
    } 
    } 
} 

私はそれが動作を確認するために何ができますか?

答えて

0

あなたはAngular AppをIISExpressサーバーに提供したいと思うでしょう。

NameOfEnvironmentWhenAppRunsは、実行ボタンを割り当てる名前です。そのようです。

enter image description here

enter image description here

ので、以下は動作しますあなたの質問に答えます。

"Sankini": { 
     "commandName": "IISExpress", 
     "environmentVariables": { 
      "ASPNETCORE_ENVIRONMENT": "Development" 
     } 
    } 
関連する問題