We are working on moving the old ASP.Net application to the cloud, and for this we did a few things, and also updated the application to use the newer .net infrastructure.
Now we have a strange problem: in the application, a link is created from the data in the database. Html:
<asp:HyperLink ID="linkProjectFolder" CssClass="imageLink" runat="server" ToolTip="Open de folder in de Windows Explorer">
<asp:Image ID="Image1" runat="server" ImageUrl="~/pages/img/openHS.png" />
</asp:HyperLink>
Code behind:
string url = string.Concat(((TextBox)viewINFO.FindControl("txtProjectmapBasePath")).Text, ((TextBox)viewINFO.FindControl("txtProjectmapPath")).Text);
HyperLink hl = (HyperLink)viewINFO.FindControl("linkProjectFolder");
if (hl != null)
{
hl.NavigateUrl = Uri.EscapeUriString(@"file:///" + url);
}
Nothing special, and this code has not changed between the old version and the new version. I know this code does not work in firefox and chrome, but the old version works in IE11.
Now, from enduser, the old version in IE works, if you click the link, a Windows Explorer window opens in the path to the file. For the same end user, from the same workstation with the same browser, the new version does not work. When you click the link, nothing happens.
, , , (susbst N: c:\temp\Ndrive), , , , . , , , , " ". , , .....
, :.net framework, IIS vs IISExpress vs IIS azure, href, , . , , , urlencoding, , ( , URL)
- , - "N:\folder\folder 2\folder and folder \", urlencoded , . C "C:\Temp", , "127.0.0.1/C$/Temp/" , , IP- , .
, . - ?