This week I started using Microsoft Entourage to connect to the Exchange server of a company I work for. After running the setup assistant and filling in what should have been the correct values, I received this error message after attempting to verify my account settings:
Verification Failed: “The end of file was reached.” (-39)
My account couldn’t be verified, and I couldn’t retrieve my e-mail. This one was a real dome scratcher, but after I figured it out, I was forced once again to ask the (probably pointless) question: Do developers bother to actually use their software before they ship it?
Entourage doesn’t make this obvious, but it connects to an Exchange server not through the same means as Outlook, but rather via mounting the Exchange-provided web interface as a WebDAV volume. When the setup assistant or the account properties box in Entourage asks you for the address of the Exchange server, it’s asking you for the web-accessible address. At the company in question, the internal DNS name of the server is not set to respond to HTTP requests since it’s assumed that anyone inside the firewall will use the Outlook client instead of a web browser to retrieve mail. Entering the external, web-accessible address into the “Exchange server” text box under the “Account Settings” tab fixed everything. Also, if your Exchange website uses SSL, don’t forget to go to the “Advanced” tab and check “DAV service requires secure connection (SSL)”.
The account properties box does say that you’re able to enter the web address of the Exchange server in lieu of something like the internal DNS name, but that blurb is inaccurate and unhelpful. It should say that an address that resolves to the Exchange website is required, not an afterthought.
As usual, the Microsoft support site didn’t have anything to say about the error message, and Google came up with one thing that was not at all useful. According to that site, error -39 meant something was wrong with Entourage’s database or preferences and they needed to be rebuilt. Obviously, that wasn’t my case.
So developers, I present you with these questions and points: What does that error message have to do with not being able to access the Exchange-provided website? Not a thing as far as I can tell. Why is the error message so obscure? The end of what file has been reached? Telling me what file sure would be helpful. Why does Entourage’s inability to reach a website mean that the end of some file has been reached? Can you not provide a more relevant and helpful error message? Why does the MSKB have nothing to respond with when I enter the exact text of the error message? Shouldn’t all of the cryptic error codes in every product be thoroughly documented if you’re going to present them to users? Can you not provide more accurate information for filling in the Exchange server field? Why am I, the user, left to ask all of these questions? Did these issues not come up in testing? Have you ever used your own software before releasing it to your customers?

My .Mac Web Gallery
June 2nd, 2006 at 4:50 pm
Thanks for posting this - I ran into a problem related to this today and I wouldn’t have known where to start for the aforementioned reasons you stated.
Unfortunately, the site I was working at has some antequated version of exchange that doesn’t do any DAV from what I was told… so I’m back at square 1.
g=
April 26th, 2007 at 9:14 pm
Thank you! After pulling my hair out as to why this wasn’t working, and giving some cryptic error that ’some’ file reached it’s end, (don’t they all?) I was getting to the point where I was just going to install XP inside a virtual machine and install Outlook 2003, but thankfully I found your article and knew the OWA was the right path to travel down, it’s finally working and now we can chalk up another victory for me!
April 24th, 2008 at 1:50 pm
Aaron you are a WONDERFUL person for posting this.
After 3 days of bloody effort, this helped me get it set up. Thanks!!