Outlook Consumes 100% CPU and Stuck at 99% Send/Recieve

For a long time I had a problem where my Outlook client would get stuck at 99% Send/Recieve and at the same time consume 100% (or as much as it can) CPU.

I have two different computers (XP and Vista) running Outlook 2007 against Exchange 2007 (Hosted Exchange) wich had the exact same problem.

When I looked at the Send/Recieve Details it usually said something like “Synchronizing Hierarchy” or just “Updating Inbox”. If I did Cancel Send/Recieve the CPU went down to normal.

After looking at the Synchronization Log messages in the Sync Issues folder I found a zillion messages like this:

08:46:56 Synchronizer Version 12.0.4518
08:46:56 Synchronizing Mailbox ‘Max Flodén’
08:46:56 Synchronizing Hierarchy
08:47:09 Synchronizing server changes in folder ‘Inbox’
08:47:09 Downloading from server ‘ex2.myisp.se’
08:48:02 69 item(s) added to offline folder
08:48:04 Synchronizing server changes in folder ‘Deleted Items’
08:48:04 Downloading from server ‘ex2.myisp.se’
08:48:05 Done
08:48:20 Microsoft Exchange offline address book
08:48:20 Not downloading Offline address book files. A server (URL) could not be located.
08:48:20 0X8004010F

So, the problem seemed to be with the Offline Address Book (OAB).

To make a long story short – after working back and forth with my Hosted Exchange ISP, Googling, creating and recreating Outlook profiles etc – the solution turned out to be that I needed to add a DNS entry for my domain in order for Outlook to Autodiscover which was the problem all along.

Autodiscover CNAME autodiscoverredirect.myisp.se

After adding this DNS entry for my domain it did not even take a minute before I got a dialog box asking me “Allow this website to configure [email protected] server settings?”

And that was it – no more stuck at 99% and no more Outlook consuming all CPU. Finally!

[Update: Found a Microsoft Knowledge Base article that describes this in more detail: A new feature is available that enables Outlook 2007 to use DNS Service Location (SRV) records to locate the Exchange Autodiscover service ]

Word as Editor in Lotus Notes

I have just started a new project at OpenNTF, the Lotus Notes Open Source community.

The base is a project that I in part developed together with SKF about 18 months ago. Thanks to SKF and Gunilla Darrell for agreeing to donate this code to the OpenNTF community.

The aim was to enhance current functionality when using Word as editor in Notes and be able to use Microsoft Word 2003 functionality such as the Research Pane and Smart Tags (but also simpler things such as the spell checker) to boost user productivity.
Other practical things were addressed, for example that in current functionality Notes sends an email created with Word both as Rich Text and as an OLE object which increases email size by a factor 10-100.

There is one Word as Editor template for OpenNTF Mail Experience and one for standard R6 mail.

Notes uses OLE Automation for it’s Word integration and this of course has its limitations. I did manage to work around many of them but I’m sure others will emerge that will need to be addressed.

Development was done using Microsoft Word 2003 and Lotus Notes 6.
Notes 7 and Notes 8 (currently in public beta) together with Word 2007 will with all certainty add new possibilities yet to be explored.

I hope other organizations will find the project interesting and maybe even useful 🙂

I am looking for an OpenNTF “co-chef” for this project as I currently don’t have that much time to spend on it. Let me know if you want to contribute to this project.

Click here for the Word as Editor projects homepage at OpenNTF.

New blog design

For you who have visited before you will notice that I’ve changed my blog design from an all grey to all white…

It’s difficult to change and find design templates for Blogger. I’m thinking maybe I picked the wrong blog system and should have chosen Word Press or one of the others instead.

I’ve spent the last hour trying to get my new template to work. I did not realize I had made that many changes to my old template. I went in to the office today even though I’m on holiday to do some important “can’t wait” stuff and this is what I spend my time doing. And it’s not even the template I want. I wanted one of these cool designs where the comments pop up like in the comic books.

Well, I guess I’ll just have to keep searching.

Outlook and outgoing SMTP servers

I have just moved and changed my ISP to one that not only blocks port 25 but also only allows their SMTP relay server to be accessed from within their own network.

When I’m at home with my laptop I have set my outgoing SMTP server as smtp.myhome-isp.com and all is fine. But when I want to work out of my office I have to change it (for all my seven accounts) to smtp.myoffice-isp.com.

I looked and asked around for some smart solution to this problem but found none except the advice to setup my own mailserver or subscribe to a mailserver service.

So, I did the same thing that I did years back when I had the same ISP (and the same problem) – I created two hosts files where I put the IP adresses to respective ISP’s SMTP relay servers. (The hosts file is where your computer goes before it goes out to the DNS to lookup an ip adress.)

  1. Goto c:\windows\system32\drivers\etc and make two copies of the hosts file and call them for example hosts.myhome-isp and hosts.myoffice-isp
  2. Edit the files and add an entry to each file for your home and office isp’s SMTP relay servers and add the hostname as mailout. You have to enter the IP address of the SMTP relay server (eg not smtp.myhome-isp.com) if you don’t know it do a ping or nslookup to find out.
  3. On the desktop (or a location of your choice) create two new batch files, eg. MyHome ISP SMTP.cmd and MyOffice ISP.cmd and add these three lines of code to each:

    cd c:\windows\system32\drivers\etc\
    copy hosts.myhome-isp hosts

    (Line two above should read “copy hosts.myoffice-isp hosts” for MyOffice ISP.cmd)

  4. In Outlook set outgoing SMTP server to mailout

Whenever you move from home to the office run MyOffice ISP.cmd and vice versa. It may not be the ultimate solution but it works (at least for Outlook 2003 and 2007)