DEV Community

1001binary
1001binary

Posted on

8

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

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 :)

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay