If I hit F5 in Visual Studio, my web app is running from localhost:nnnn. None of my images or styling is available. If I modify the URL in the browser and delete the :nnnn so it's just localhost, the page is styled and all images resolve.

Any idea why this is happening and how I can prevent it; that is, make it run from localhost to begin with?

Thanks.