Reputation: 141
My Internal website is hosted on IIS server. I have added a virtual directory
/Resources
with physical path \\svr-dc\Images\Technical\Done\Resources
I have given the right path credentials.
When i typehttp://intraweb/internaldb/Resources//blue%20shaft.png
in the browser I can see the image. But when my application loads it tries to access the following URL http://intraweb/Resources//blue%20shaft.png
I am clearly missing something very simple here.
I extract the image by doing query from my SQL database and calling @Html.Raw(ViewBag.Body)
in my View to display the content. Everything is displayed as it should be with the exception of the image.
Upvotes: 0
Views: 2053
Reputation: 433
You should convert your virtual directory into application. Right click on the virtual directory and select 'Convert to application'. Then IIS will serve webrequests related to that application.
Upvotes: 1