Outlook refuses to connect to Exchange

13,066

Solution 1

Had this problem before and I really had a hard time getting answers for this. I found some simple trick on the net to make it work. Try disable then re-enable your NIC or flushing your dns then registering it again. But this problem will occur again if your restart your pc. I almost lost hope til I had this crazy idea. On your TCP/IP settings, i put the IP of my mailserver to WINS server settings then the problem just went away. I still dont know how did that resolved the problem so I'm still researching to get a clearer answer.

Solution 2

Sounds like you may have hit the 32 connections limit with Exchange 2003. We've been battling that for years without a fix for some users. A reboot of the Exchange server will clean up the connections, but I've got no clue what causes it for some users.

Solution 3

Simple..Just open outlook from the 'run' command using the command line 'Outlook.exe /profiles'. The profile screen will come up...go through the advanced options and create new profile ,name it and make it the default option(very imp or u will have the same problem again!) and your outlook will open up. Once there, you can then see your corrupt profile and delete or view it and create new connection settings for your new profile. Had to try lots of stuff before i found this solution. I know how frustrating this can be so good luck guys!Post back if it works for you!

Share:
13,066

Related videos on Youtube

wfaulk
Author by

wfaulk

Unix admin since '96 Network admin since '97 Jack-of-All-Trades since '91 Computers I've owned over the years: TI 99/4A Apple //c homebuilt PC-compatible 8088 Gateway 2000 486SX-25 homebuilt Pentium II Sun SparcStation 1+ Sun Enterprise 2 WinBook XL2 Apple Power Macintosh G3 Minitower IBM Netfinity 3000 homebuilt Intel Pentium → AMD K6-2 Sun Ultra 80 SGI Octane SGI O2 Apple iBook G3 (Graphite) Sony Vaio PCG-Z1WA laptop Apple Mac Mini G4 Apple MacBook Pro 17 Apple Mac Mini Intel Dell Poweredge T610

Updated on September 17, 2022

Comments

  • wfaulk
    wfaulk over 1 year

    Outlook 2007 under Windows XP connecting to Exchange 2003 SP2: when started, it flips back and forth between "Connecting to Exchange Server" and "Disconnected" three or four times, then gives up and stays disconnected.

    I tried deleting the ost file (which was nearly 2GB), turning Cached mode on and off, recreating the account inside the Mail control panel, changing the account to use HTTP, and probably some other things. None of it seemed to make any difference, until …

    After fiddling with it for a while, I got this absurd error message dialog at startup, and it exits after I click OK:

    Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The set of folders cannot be opened. Microsoft Exchange is not available. Either there are network problems or the Exchange server is down for maintenance.

    (I'm not sure if I can even trust that message. It's so long, it just feels like a random offset into Outlook's stack of error messages.)

    Either way, the Exchange server is available to everyone else, and is available via OWA from that computer. I ran Process Explorer against Outlook and it showed 5 or so ESTABLISHED connections to our Exchange server, plus listening on two UDP ports, and two CLOSE_WAIT connections to localhost. If I managed to look at Outlook's IP connections while it was doing its Connecting/Disconnected dance, it had a huge number of connections open to the Exchange server. It more than filled ProcExp's dialog box; I'm guessing at least 20, probably more.

    The only other odd thing is that our network admin at some point added a wildcard DNS record to the domain name that we use for email, and now Outlook will sometimes (always?) start by complaining about autodiscover.example.com's SSL certificate. There is a web server there, but it doesn't have any sort of email autodiscover anything on it. It doesn't make any difference if I click "OK" or "Cancel" (or whatever the buttons are). I also added a bogus entry for the hostname to Windows' hosts file, pointing it at 127.0.0.2, and it stopped complaining about the certificate. (The CLOSE_WAIT sockets above were from before I made this change, and went away after.) I don't think this is related, as the same problem should exist for everyone, but it might be.

    This is the second time this user has had this problem. The first time, I never found a solution other than reinstalling Outlook. Now that it's a pattern, I'd like to find a permanent solution, rather than assume it's a random glitch.

    Edit:
    The user's Outlook started working again, partially, last night while at home connected to the office via VPN. It's unclear how much of the "partially" is due to me screwing around with his account settings. Probably a large portion. That said, once I recreated his account settings properly this morning, he says that a large number of folders were moved around. Honestly, this feels to me like user error, but it might also be a symptom of the problem.

    I'll have to come back to this if and when the problem crops up again.

    • wfaulk
      wfaulk about 14 years
      No, I didn't try a whole new profile. That's something to check.
  • wfaulk
    wfaulk about 14 years
    If and when the problem recurs, I'll definitely check this.
  • Hecter
    Hecter almost 14 years
    Definitely sounds like a DNS problem, especially if it mysteriously started working when the user opened a VPN connection (which would have changed/reset DNS settings). If the problem recurs: can the user nslookup exchange-hostname? What about exchange-hostname.yourdomain?
  • wfaulk
    wfaulk over 13 years
    Do you have a link for this "32 connections limit"?
  • azethoth
    azethoth over 13 years
    Check the server logs for this: support.microsoft.com/kb/842022