DependencyHandler.axd error no css being loaded
j
I have a site that has been working fine (unchanged for ages) and it has just been moved to a new server the site works but no css is being loaded and in the console it says:
Refused to apply style from DependencyHandler.axd?s=L2Nzcy9zY3JlZW4ubWluLmNzczs&t=Css&cdv=44 because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
. Viewing the url directly gives a 404 error. Anyone know what needs to be changed on the server to get this to work? Other sites on the same server are working.
s
In your web.config file, is there a node for clientDependency? If so, does it look like the line below?
<clientDependency configSource="config\ClientDependency.config" />
j
@Stewart I am not 100% on the cause but I changed a few things on the new server to match the previous and it is now working: -Updated the app pool back to App pool identity and set permissions -Disabled Dynamic content compression as this was not installed on the previous server. -Restored the web.config from the old server