I have a MVC application hosted on a IIS 7.5
In my project I have a local images folder in a different location that is configured in IIS as a virtual directory say /otherimages
When I try to reference this path from the view it doesn’t display the images, images that are hosted in /Content folder work perfectly, how can I configure this to work.
I tried
Url.Content("~/otherimages/pic.jpg")
but plain img tag doesn’t work either.
Thank you
that should work. i would check permissions. Go have a look at the IIS logs to see if you get a response other than 200 status.