I have a .net core 3.1 mvc project, and published to azure web app. Then in kudu -> home/site/wwwroot, I created a html file, like below:
But when I want to visit the html page via azure web app like this "https://xxx.azurewebsites.net/test111.html", it has 404 error:
Are there any way to fix this, from code or azure portal?
CodePudding user response:
Looks like you have an ASP.NET Core app? Have you enabled serving of static files, re:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0