ProgSky
ProgSky

Reputation: 2620

ASP.net page not loading CSS with error Failed to Load Resource

I have asp.net application which I am running on local host. When I browse page loads but its not able to pick any css and js and I get error as

Failed to load resource: the server responded with a status of 404 (Not Found) (see screenshot) .

Any pointer as to what could be wrong here? enter image description here

On a different server, same page loads fine with all images.

Upvotes: 1

Views: 3759

Answers (2)

Vijunav Vastivch
Vijunav Vastivch

Reputation: 4211

Include all your files or css and any from Project PC to Deployment server

Upvotes: 1

Kevin Raffay
Kevin Raffay

Reputation: 840

Check your paths -- you may need to use a relative path instead of an absolute. Also, confirm that you can navigate to the css and js files from your browser using the path that you see in the console (you probably will not). Finally, check your IIS settings and make sure you can server Static files.

Upvotes: 2

Related Questions