Clicking hyperlinks in Email messages becomes painfully slow

21,142

Solution 1

I'm getting a little bit closer.

Rebooting fixed the problem. :) Not that that is a permanent solution...

According to Microsoft programmer Raymond Chen, DDE is supposed to be obsolete, but everybody seems to still be using it.

The trouble with DDE, he says, is that it's cooperative, and one hung application can cause all other applications to not respond properly when they try to use DDE.

In my case, rebooting fixed the problem because it closed whichever application it was that was failing to respond properly to the DDE messages.

A common solution to this problem in the Windows XP timeframe was to uncheck the USE DDE box in the file type handler, but that checkbox appears to no longer exist in Windows 7. Even though DDE is obsolete, applications still register it in the registry so stupid apps like Outlook 2007 still use it to launch hyperlinks.

This solution wasn't very useful, because even stupider apps, like Firefox, were so intent on using DDE that they would REREGISTER themselves as using DDE every time they launched. The only permanent solution was changing the security settings on the appropriate key in the registry so that Firefox didn't have the ability to write to it.

I'm still not very happy with this answer.

Solution 2

If somehow Internet Explorer is slow, then clicking links from Office will be slow as well, even if you don't use Internet Explorer as your default browser. So: check if Internet Explorer is still running fine.

Though you seem confident that DDE is to blame, Office has a surprisingly odd feature: it first uses an Internet Explorer component to see if the URL one clicks is valid. It does not identify itself as Internet Explorer; in the access logs one might see:

User Agent: Microsoft Office Existence Discovery

After that, it hands the resulting URL to the default browser. That is:

  • If the hidden call to the URL yields some redirect, then the default browser is not even given the original URL, but the redirected URL.

  • If the web site for some reason blocks the User Agent "Microsoft Office Existence Discovery", or if your Internet Explorer settings somehow prevents proper access to the site, then the link might seem dead while in fact using a normal browser it would work fine.

Ever wondered why your browser keeps redirecting you to some login page when clicking links from Office? Right: if Internet Explorer is not authenticated at the web site (especially true when it's not your default browser), then some sites might respond with a redirect to a login page, making Office forget about the URL you actually clicked...

Some more details about this funny annoying "Microsoft Office Protocol Discovery" at Microsoft's Description of the Microsoft Office Existence Discovery Protocol blog post:

When opening documents from a URL location in Microsoft Office 2007, the Office library can make an HTTP HEAD request to the web server for the opening URL. This request is sent with a User-Agent set to"Microsoft Office Existence Discovery". This call is new to Office 2007.

The purpose of the HEAD request is to check that the content exists at the URL location as a document, and not simply as a tempoary resource streamed down for a read-only session. The call will also attempt to obtain the last modified time of the content as returned by the web server in the HEAD response.

[...]

This call occurs on all URL open attempts, even if editing is not requested per se. As a result it is possible that the extra web call (made from the process space of the Office application in its network session and not the web browser in a separate session) can cause some users to see extra prompts to authenticate (401) or loss of session state and an unnecessary redirection (302) to a login page or other feedback form. This is expected behavior.

It seems this can be disabled using the registry; see my answer at MS Word validating links after click.

Solution 3

Old question, I know, but here goes... After trying a couple of other suggestions, I finally fixed the problem by running a repair-install on Microsoft Office.

All the launched-by-DDE programs (FireFox, Excel and others) are now launching normally without the delay.

Solution 4

I have tried all of the suggestions above with no success. It's very frustrating to wait one full minute after clicking a hyperlink before it displays in Firefox. And if you click more than once, every click displays as a different tab.

So here is my workaround, which works but is still annoying.

When you want to activate a hyperlink:

  1. Right-click it - do not left-click since that will launch your 60-second wait;
  2. Copy the internet URL address shown, and then
  3. Simply paste the link into your browser and press Enter. Your page instantly appears.

This works every time because you are bypassing the bug in Outlook somehow preventing us from connecting directly.

Solution 5

I'm running XP with Office 2007. I had initially tried the many solutions discussing use of "%1" and disabling DDE in various file extensions, but it only seemed to work for those extensions selected and only when they were launched from certain locations. (I.e. lauches from my Quick Launch toolbar and Outlook didn't always speed things up.)

I tried all of the solutions below when I expereinced the same problem. One of them seems to have worked, though I'm not sure which one it was. I never did identify the root cause, though the problem first occured in the midst of some backup work I was doing involving an external drive and also while I was opening a rather old Outlook pst file. At one point shortly before noticing the problem, I experienced some sort of (ODBC?) error while trying to export an old Outlook calendar. I'm suspicious that one of these actions may have been related.

  1. Start menu | Run | Cmd | chkdsk c:\ /F (Opted to restart terminal when solution presented itself, though I tried solutions 2 & 3 before actually restarting).

  2. Verified that Network DDE and DDE DSDM were disabled in my services (they already were).

  3. Verified that I hadn't installed anything new recently that might be interfering (I hadn't).

  4. Start | Settings | Control Panel | Set Program Access & Defaults | Custom | Selected my options (I use Outlook for email and Firefox as my browser). When I did this, Microsoft repaired something. At this point, I did my reboot (from option 1) and after chkdsk ran, things came back up just fine.

I also read that some people had success after performing a repair reinstall of Office, but I was going to use this as a last resort option, as I didn't have the disks at hand.

Good luck.

Share:
21,142

Related videos on Youtube

elgrego
Author by

elgrego

In 2000 I co-founded Fog Creek Software, where we created lots of cool things like the FogBugz bug tracker, Trello, and Glitch. I also worked with Jeff Atwood to create Stack Overflow and served as CEO of Stack Overflow from 2010-2019. Today I serve as the chairman of the board for Stack Overflow, Glitch, and HASH. I served as a paratrooper in the Israeli army, graduated from Yale University in 1991, and spent time on the Excel team at Microsoft where I was the program manager responsible for the launch of VBA in Excel 5.0. I’ve also written four books, do a lot of Arduino stuff, and talk too much about Barry’s Bootcamp and Burning Man.

Updated on September 17, 2022

Comments

  • elgrego
    elgrego almost 2 years

    Running Windows 7 (RC, 64 bit). Suddenly, today, after months without a problem, clicking on links has become extremely slow.

    I've noticed this in two places.

    (1) clicking hyperlinks in Outlook email messages, which launches Firefox, takes around a minute. Launching Firefox by itself is instantaneous - I have an SSD drive and a very fast CPU. (2) opening Word documents attached to Outlook email messages also takes a surprisingly long time.

    The only thing these two might have in common is that they use the DDE mechanism, if I'm not mistaken, to send a DDE open command to the application. Under Windows XP this problem could sometimes be fixed by unchecking the "Use DDE" checkbox in the file type mapping, however, I can't find any equivalent under Windows 7.

    See here for someone else having what I believe is the same problem. See here for more evidence that it's DDE being super-super-slow.

    • Admin
      Admin almost 15 years
      Maybe monitoring outlook.exe with Process Explorer could yield some interesting information: technet.microsoft.com/en-us/sysinternals/bb896653.aspx
    • Admin
      Admin almost 15 years
      will try next time this happens
    • Admin
      Admin over 14 years
      I've observed something similar on XP, where opening any type of file via DDE seems to hang Explorer for about 15 seconds. I'm pretty confident that Outlook 2007 has been causing this, since the problem goes away if I close Outlook entirely. When I restart Outlook the problem doesn't recur immediately, but within a few minutes it's back to doing the same thing.
  • Admin
    Admin almost 15 years
    I'll try compacting the offline file... in my case it's an OST and it's only 1GB.
  • Admin
    Admin almost 15 years
    ZOMG, that was it! Compacting the OST file fixed it!!!
  • Admin
    Admin almost 15 years
    edited to add specific instructions in case someone finds this in the future
  • Admin
    Admin almost 15 years
    AAH! I spoke to soon. This didn't fix it. The reasons I thought it did are too embarrassing to mention here. :-D I really think it is somehow related to the DDE mechanism, because in the past, this problem could be fixed temporarily by deleting the DDE entries that Firefox put in the registry
  • Admin
    Admin almost 15 years
    well, at least your outlook storage files received some free maintenance in the process :)
  • Admin
    Admin almost 15 years
    this is actually one of the reasons why i'm still reluctant to use 64bit windows: i prefer my web browser runing in a sandbox which is tied to a RAM disk, and Sandboxie doesn't work in 64bit windows ... yet. so whatever FF and Co feel inclined to write to the registry is only valid until the next reboot, keeping matters in decent shape.
  • Rich
    Rich almost 6 years
    Thanks! I had suspected that Outlook was pre-fetching links for a while, but you have confirmed it. What a stupid feature.