J
Jay Sullivan
We have an IE-based application which allows users to create links to files
on the local C drive. The web pages for this application run in the Local
Intranet zone. After upgrading to XP SP2, the links to local files no
longer work. When you click on a link like <a href="c:\test.txt">Test</a>,
nothing happens - you don't even get an Information Bar warning.
I tried doing a test which uses window.open to open the local file (e.g.,
window.open "c:\test.txt"), and that gives you an "access is denied" error.
I assume this is due to the new Local Machine lockdown stuff in IE. I
tested out disabling this feature by setting iexplore.exe to 0 in
HKLM\SOFTWARE\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_ZONE_ELEVATION. That worked, but
obviously that's not an ideal solution.
I first came across a similar problem when IE 6 SP1 was released. But that
only blocked Internet Zone pages from linking to local files. Now the
Intranet Zone (and even Trusted Zone) seem to be blocked. The solution that
I found with IE 6 SP1 was to set the following registry entry:
HKCU\Software\Microsoft\Internet
Explorer\Main\Disable_Local_Machine_Navigate=0. This still seems to work in
XP SP2 - it opens up links to local files.
Here are my questions:
1) Is there another way besides these two registry tweaks to allow links to
local files to work? I tried adding the site to Trusted Zone but that
didn't help.
2) Shouldn't I be getting an Information Bar warning when these links are
blocked? That would allow the user to choose whether they wanted to open
the link or not.
3) If I have to use one of the registry tweaks, which one makes more sense
(the Disable_Local_Machine_Navigate change or the FEATURE_ZONE_ELEVATION
change)?
Thanks,
Jay
on the local C drive. The web pages for this application run in the Local
Intranet zone. After upgrading to XP SP2, the links to local files no
longer work. When you click on a link like <a href="c:\test.txt">Test</a>,
nothing happens - you don't even get an Information Bar warning.
I tried doing a test which uses window.open to open the local file (e.g.,
window.open "c:\test.txt"), and that gives you an "access is denied" error.
I assume this is due to the new Local Machine lockdown stuff in IE. I
tested out disabling this feature by setting iexplore.exe to 0 in
HKLM\SOFTWARE\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_ZONE_ELEVATION. That worked, but
obviously that's not an ideal solution.
I first came across a similar problem when IE 6 SP1 was released. But that
only blocked Internet Zone pages from linking to local files. Now the
Intranet Zone (and even Trusted Zone) seem to be blocked. The solution that
I found with IE 6 SP1 was to set the following registry entry:
HKCU\Software\Microsoft\Internet
Explorer\Main\Disable_Local_Machine_Navigate=0. This still seems to work in
XP SP2 - it opens up links to local files.
Here are my questions:
1) Is there another way besides these two registry tweaks to allow links to
local files to work? I tried adding the site to Trusted Zone but that
didn't help.
2) Shouldn't I be getting an Information Bar warning when these links are
blocked? That would allow the user to choose whether they wanted to open
the link or not.
3) If I have to use one of the registry tweaks, which one makes more sense
(the Disable_Local_Machine_Navigate change or the FEATURE_ZONE_ELEVATION
change)?
Thanks,
Jay