I am having trouble accessing the CSS file located in the MVC AREA section of my website.
Below is the full path to the CSS file:
I believe the path is correct because JavaScript files and images are loading from the same location without any issues.
Authentication does not seem to be a problem either.
When I tried to debug using Firebug, it displayed the following error message:
The stylesheet was not loaded because its MIME type, "text/html", is not "text/css", even though I specified the text/css type in the link attribute.
Here is how I am referring to the css file:
link href="~/Areas/MVC/Resources/dist/css/custom.css" rel="stylesheet" type="text/css"
I also attempted using the absolute path, but still no success.
While the above link works fine when opened directly in a browser and displays the CSS correctly, it simply refuses to load within the application. Interestingly, the JavaScript resources and images from the same folder are loading properly using the same path.