Home > Software design >  How to fix the issue with the referencing static files in ASP.NET core
How to fix the issue with the referencing static files in ASP.NET core

Time:12-23

This is similar to enter image description here

How can I resolve this? Why it causes an issue?

FYI: I am attaching the screenshots of the folder structure and code snippets. enter image description here

enter image description here

CodePudding user response:

I am adding this answer since dbc didn't want to leave the answer here even though I asked him to leave an answer. The solution is to remove ~ from the code. He provided a very helpful answer - Slash (/) vs tilde slash (~/) in style sheet path and it was a topic regarding ASP.NET and exactly what I was looking for. I resolved the issue. : )

  • Related