I have a small app I’ve written, and it works well when using the dev server, but as soon as i switch to IIS on my local box (IIS 7), I lose images and styles.
I tried using Url.Content and that kind of works for styles and images in the master page, but I still lose images that are referenced from CSS styles
Is there any way I can get this to work in both the local mode and via localhost/iis?
I suspect this has something to do with virtual directories, but don’t know IIS well enough to say for sure.
Thanks.
Did you publish or upload your images? If you did not add your images into your project, they will not be published.
More questions:
Have you updated any routing rules? If so, please show them to us. Do you declare any authorisation attributes over your controllers?