In our ASP MVC 3 site, we have some hyperlinks that point towards files out on our LAN (this is an intranet site). These links have ALWAYS worked up until today.. at which point not a single one will work. Prior to today you were able to click on the link and the file (usually an .xlsx spreadsheet) would open up.
The file path is saved as a field in the database. On the Index view, if this attachment
field has content then a hyperlink with a paperclip image is used in this table cell. Here is the code from the view:
<td>
@if (!String.IsNullOrWhiteSpace(item.Attachment))
{
<a href=@item.Attachment class="noLine"><img src="@Url.Content("~/Content/Images/attachment.png")" height="20px;" width="20px;"/></a>
}
</td>
And here is an example of how this HTML is rendered
<td>
<a href="\\Prdhilfs03\l&i-sales&mkt\WORKAREA\Agencyservices\Shared\AIC\MasterListAttachments\AF.xls" class="noLine"></a>
<img src="/Content/Images/attachment.png" height="20px;" width="20px;">
</td>
If I right-click and copy the link address this is what I get on my clipboard
file://Prdhilfs03/l&i-sales&mkt/WORKAREA/Agencyservices/Shared/AIC/MasterListAttachments/AF.xls
However, if I right click the link, select "Inspect Element", then right click the anchor link from the console and select "Copy Link Address" I get this:
http://localhost:2574///Prdhilfs03/l&i-sales&mkt/WORKAREA/Agencyservices/Shared/AIC/MasterListAttachments/AF.xls
Any help or suggestions would be appreciated. Thanks!
EDIT
When I click the link, I receive this error message in the Chrome console:
Not allowed to load local resource: file://Prdhilfs03/l&i-sales&mkt/WORKAREA/Agencyservices/Shared/AIC/MasterListAttachments/AF.xls