简体   繁体   English

ASP.NET Core和.asmx

[英]ASP.NET Core and .asmx

I have an ASP.NET Core application that uses the ASMX service. 我有一个使用ASMX服务的ASP.NET Core应用程序。 It works fine when I run it using IIS Express from Visual Studio or IIS (according to https://docs.microsoft.com/en-us/aspnet/core/publishing/iis ). 当我从Visual Studio或IIS(根据https://docs.microsoft.com/zh-cn/aspnet/core/publishing/iis使用IIS Express)运行它时,它运行良好。 If I use dotnet run (after dotnet publish), I get the error 404 when accessing the service. 如果我使用dotnet run(在dotnet发布之后),则在访问服务时收到错误404。 Can you tell me, please, what the reason of it is? 你能告诉我原因吗?

Error 404 means File Directory not found. 错误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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM