DEV Community

loading...

How to fix Static Files not working in ASP.NET Core

1001binary
"Developer - Security Researcher" != None
・1 min read

One day I have been working on a project using ASP.NET Core. I have experienced a problem serving static files such as index.html in ASP.NET Core. Basically, I thought that ASP.NET core package included handling and configuring static files.

Finally, I ended up installing a separate package Microsoft.AspNetCore.StaticFiles to get it worked.

Hope you enjoy this post.

Happy coding :)

Discussion (0)