2017-03-13 4 views
0

私はASMXサービスを使用するASP.NETコアアプリケーションを持っています。 Visual StudioまたはIISのIIS Expressを使用して実行するとうまく動作します()。 dotnet run(dotnet publishの後)を使用すると、サービスにアクセスするときにエラー404が表示されます。あなたは私にそれを教えてもらえますか?その理由は何ですか?ASP.NETコアと.asmx

答えて

0

エラー404は、ファイルディレクトリが見つかりません。

1. Make sure all of your file after published are included. 
2. To do that > on your Project Solution Explorer > select the folder where the file is content > Properties > Copy if Newer. 
3. Clean > Rebuild > Publish. 
関連する問題