[英]ASP.NET Core and .asmx
我有一个使用ASMX服务的ASP.NET Core应用程序。 当我从Visual Studio或IIS(根据https://docs.microsoft.com/zh-cn/aspnet/core/publishing/iis使用IIS Express)运行它时,它运行良好。 如果我使用dotnet run(在dotnet发布之后),则在访问服务时收到错误404。 你能告诉我原因吗?
错误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.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.