C
C#2y ago
JShobbyist

❔ How to fix the issue with the referencing static files in ASP.NET core

I am new to here. Is there anyone can help me with this? I am having a problem with referencing static css files in Index.cshtml file. got an 404 error. Here's the link to my post on stackoverflow. https://stackoverflow.com/q/74834232/14912225 Pls help me.
Stack Overflow
How to fix the issue with the referencing static files in ASP.NET core
I am having an issue with ASP.NET core. In the Index.cshtml, there are some codes, which include CSS static files: ... <link href="~/css/features.css" rel="stylesheet"> &l...
2 Replies
phaseshift
phaseshift2y ago
You didn't show your services set up. Did you use UseStaticFiles()?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server