I'm having trouble with Visual Studio 2005's development
server. I used to develop my websites using .NET 2003 and
IIS all on one workstation. I've now migrated to VS 2005 (without
uninstalling 2003).
My problem is this: When I try to debug usinv the development
webserver that came with VS 2005, it debugs fine, however certain files
don't get served when they are in subfolders.
For example:
If my webroot is / then the web server won't display
/brands/brandx/images/image001.jpg, and it won't serve
/scripts/uiscript.js. These URLs appear correctly in the html
source but they are not actually served; I get broken links for those
images and the scripts don't appear in the html source. The root
folder (/) of my web project is a virtual directory /myproject on the
development webserver. IIS is still installed though.
If I map the folder on my IIS server to the same project but name it
/mp, the site displays perfectly. However, I can't debug against
IIS! VS says debugging is not enabled (even though I used to
debug against it all the time with VS 2003).
If it helps, my project is in my documents\visual studio 2005\projects\myproject\myproject
I use only relative URLs and again it works fine under IIS, but I can't seem to both debug and test on the same web server.
Any ideas This is really interrupting my work! Thanks.

VS 2005 Development Web Server Problem - Broken image links
vala
I think I may have found the answer - In the project's "Propert Pages", in the Start Options Tab, use the "Custom Server" option and link to the IIS root folder of the application. When you debug, all files and folders should now be included.
Hope this helps!!
jonte
I have also enountered this same problem, but slightly different:
When I debug my web application, internet explorer is directed to http://localhost:1131/ (for example) and all the images and script includes are not served. However, if i manually navigate to the IIS application (localhost/webapps/myproject/ - for example) everything is rendered correctly (but ofcourse that's not attached to the debugger).
I too have all my image and script files in subfolders, but unfortunately, don't have a solution.
Please help someone!!