I have an ASP.NET Core application that uses the ASMX service. 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). If I use dotnet run (after dotnet publish), I get the error 404 when accessing the service. Can you tell me, please, what the reason of it is?