My website is written in Visual Studio 2010. There are a few images on my website (JPG format). I am using IIS to upload the website locally. On the same desktop that I am uploading a website locally, I am trying to view it. When I click "explore" in Visual Studio 2010, I can see the website and all of its images, but when I go to IIS and click "Browse", I can see the website but not its images. Please let me know what could be the reason for this and how to fix it. Thanks.
Copyright © 2024 Q2A.MX - All rights reserved.
Answers & Comments
Verified answer
You're probably using absolute references to the images rather than relative references. Any references of the form file:\\\ or something similar are to locally stored images. Make sure you actually uploaded the image files, and make sure that you're using relative references to them.
Oh dear