I'm new to mvc3 and what I'm trying to do is show in a view the images that are saved in the file system under C:\temp
In my project I defined a resource, photo_url -> C:\temp, I pass to the view through ViewData, at the end I can get the complete and correct path of the file I want to display, example ... src = "C:\temp\img.jpg" ... but I get the error "Not allowed to load local resource:"
src="@Url.Content(ViewData["path_photo"] + "\\" + item.link_photo)
By putting the photos inside the project, for example in ..\..\content\photo, I can visualize them, but saving them outside the project I can't access them. Help! Thank you.