【问题标题】:ASP.NET Core and .asmxASP.NET Core 和 .asmx
【发布时间】:2017-03-13 15:04:39
【问题描述】:

我有一个使用 ASMX 服务的 ASP.NET Core 应用程序。当我使用 Visual Studio 或 IIS 中的 IIS Express 运行它时,它运行良好(根据 https://docs.microsoft.com/en-us/aspnet/core/publishing/iis)。如果我使用 dotnet run(在 dotnet publish 之后),访问服务时会收到错误 404。请告诉我这是什么原因?

【问题讨论】:

    标签: c# web-services asp.net-core


    【解决方案1】:

    错误 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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-07
      • 2017-03-20
      • 2016-06-28
      • 2016-07-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多