I am writing a diagnostic page for SiteScope and one area we need to test is if the connection to the file/media assets are accesible from the web server. One way I think I can do this is load the image via code behind and test to see if the IIS status message is 200.
So basically I should be able to navigate to within the site to a folder like this: /media/1/image.jpg and see if it returns 200...if not throw exception.
I am struggling to figure out how to write this code.
Any help is greatly appreciated.
Thanks
http://localhost/homepageand see if there is any missing image in this page ? My initial idea is to read the page usingHttpWebRequest, get the Response then look into the content, for each <img> element, spawn another Request. Any different idea ?