Why does DEP kill IE when accessing Microsoft FTP?

Posted by Sammy on Super User See other posts from Super User or by Sammy
Published on 2012-08-28T13:29:04Z Indexed on 2012/08/30 21:41 UTC
Read the original article Hit count: 800

I start up IE (9.0.8112.16421) with about:blank and I go to ftp://ftp.microsoft.com/

I press Alt, click View and then Open FTP Site in Windows Explorer. At this point IE stops responding and eventually crashes (though the window is still active, sometimes) and I get the usual Windows dialog box saying that the program has stopped working.

From this dialog box I click on the option to try to find solutions to the problem and the progress bar just keeps scrolling without giving me any result page whatsoever, so I have to abort by clicking Cancel.

Then I get the bubble type of pop-up message from the system tray saying that DEP has stopped the program from executing.

What gives? Why would DEP (part of Microsoft Windows) be preventing IE (a Microsoft product) from performing a perfectly legitimate action from Microsoft's own FTP site?

The OS is Windows Vista HP SP2, Swedish locale.

Screenshots as follows...

microsoft ftp in ie 9 screen 1

microosft ftp in ie 9 screen 2

microosft ftp in ie 9 screen 3

microsoft ftp in ie 9 screen 4

Update: I normally have UAC disabled, but I have discovered that enabling it has an effect on IE when I click the FTP option from the View menu, just as I suspected.

I basically tried starting IE in its 32-bit and 64-bit version, with and without add-ons, and switching UAC on and off, and then trying to go to View and the FTP option (as shown above). Here are the results.

With UAC off and DEP on

Action: IE 32-bit, normal start, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: crash

Action: IE 32-bit, extoff, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: crash

Action: IE 64-bit, normal start, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: information & warning message

Action: IE 64-bit, extoff, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: information & warning message

This is the information and warning message I get if I use IE 64-bit: microsoft ftp in ie 9 screen 5

microsoft ftp in ie 9 screen 6

The first message is an FTP proxy warning. It says that the folder ftp://ftp.microsoft.com/ will be write-protected because proxy server is not configured to allow full access. It goes on to say that if I want to move, paste, change name or delete files I must use another type of proxy, and that I should contact the system admin for more information (the usual recommendation when they have no clue of what's going on).

What the heck is all this about? I don't even use a proxy server, as you can see from the next screenshot (Internet Options, Connections, LAN settings dialog).

microsoft ftp in ie 9 screen 7

That second message only states that the FTP site cannot be viewed in (Windows) Explorer.

With UAC off, I always get these two messages when running the 64-bit version of IE.

With UAC on and DEP on

Action: IE 32-bit, normal start, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: crash

Action: IE 32-bit, extoff, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: security warning message, prompts to allow action

Action: IE 64-bit, normal start, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: security warning message, prompts to allow action

Action: IE 64-bit, extoff, go to ftp://ftp.microsoft.com/, view menu, FTP option.
Result: security warning message, prompts to allow action

As you can see from this list, if I have UAC enabled I actually get rid of these messages and opening the FTP site in Windows Explorer (from IE) actually works (except for 32-bit version which still crashes).

Here is the security warning message: microsoft ftp in ie 9 screen 8

The fact that the 32-bit IE still crashes could be an indicator that this has something to do with one or several add-ons in that bit-version of IE. The 32-bit IE doesn't crash if it's started with the extoff flag.

If this is affecting only the 32-bit IE then it's only normal that the 64-bit IE doesn't have this problem because it would not be using any of the add-ons used by the 32-bit version, they are not compatible with 64-bit (although some add-ons work both with 32-bit and 64-bit IE).

Figuring out which add-on (if any) is causing this problem is a whole new question... but I seem to be closer to an answer now, and a possible solution.

I could of course just add IE (32-bit) in the exclusion list of DEP. In fact, I have already tested this and it causes IE to perform this task without hiccups. But I don't really want to disable DEP, or force it on all Windows programs and services (except the ones I strictly specify in the exception list). (In other words DEP can't really be completely disabled, you can only switch between two modes of operation.)

Update 2: This is interesting...

I start 32-bit IE, go to ftp://ftp.microsoft.com/ and click on View, and Open FTP Site in Windows Explorer. The result is a crash!!

Then I start 32-bit IE with extoff flag to disable add-ons, I go to ftp://ftp.microsoft.com/ and click on View, and Open FTP Site in Windows Explorer. I get the security warning, as expected with UAC enabled, and it opens up in Windows Explorer.

Now... I close Windows Explorer, and I close IE. I then start 32-bit IE (normal start, with add-ons), I go to ftp://ftp.microsoft.com/ and click on View, and Open FTP Site in Windows Explorer. Now this time it doesn't crash! Instead, I get the screenshot number 5 as seen above. This is the FTP proxy warning message. Now get this... if I click the close button to get rid of this message, what happens is that Firefox starts up, and it goes to ftp://ftp.microsoft.com/

The fact that this works with 32-bit IE (with add-ons) the second time around, is because I am still logged in as anonymous to the FTP server. The log-in has not timed out yet. Standard log-in timeout for FTP servers is usually 60 to 120 seconds. I got logged in to it the first time I ran 32-bit IE with the extoff flag (no add-ons) which actually works and connects using Windows Explorer.

Update 3: The connection to the FTP server has timed out by now. So now if I run 32-bit IE (with add-ons) and repeat the steps as before it crashes, just as expected...

In conclusion:

  • If I have already been connected to the FTP server via Windows Explorer, and I go to this FTP address in 32-bit IE and I pick the FTP option from the view menu to open it in Windows Explorer, it gives me a FTP proxy server warning and then opens the address in default web browser (Firefox in my case).

  • If I have not been connected to the FTP server via Windows Explorer previously, and I go to this FTP address in 32-bit IE and I pick the FTP option from the view menu top open it in Windows Explorer, then it crashes IE!

This is just great...

It's not that I care much for using Internet Explorer or the Windows Explorer to log in to FTP servers. This just shows why IE is not the best browser choice.

This reminds me of the time when Microsoft was enforcing the use of Internet Explorer as default browser for opening web links and other web resources, despite the fact that the user had installed an alternative browser on the system.

Even if the user explicitly set the default browser to be something else and not Internet Explorer in the Windows options, IE would still pop up sometimes, depending on what web resources the user was trying to access. Setting default browser had no effect. It was hard-coded that IE is the browser of choice, especially when accessing Microsoft product or help pages. The web page would actually say that you are not using IE, and that you must open it in IE to view it. Unfortunately you would not be able to open it manually in a different browser by simply copying and pasting the URL from the address bar, because it would show a different URL, and the original URL would re-direct to the "you are using the wrong browser" page so you would not have the time to cut it to clipboard.

Thankfully those days are over. Now-days Microsoft is forced to distribute IE and WMP free versions of Windows for the EU market. The way it should be! These programs have to be optional, not mandatory.

© Super User or respective owner

Related posts about browser

Related posts about windows-explorer