1

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.

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

thanks for your response Kevin. I can see css and jss file from browser. Where in IIS settings can I check for Statis Files?
Your mileage may vary, depending on your OS, but this usually works: weblogs.asp.net/anasghanem/…
Kevin, enabling static files helped me. Thanks!
1

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

2 Comments

Make sure you had a right permission access to your project folder in server.
thanks . Kevin suggestion helped me solved my issue. I had to turn on Static file settings. This was a fresh build machine and was missing it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.