Microsoft Sharepoint Error: Cannot connect to the configuration database.

This was actually a very simple error to fix once I knew the cause, but the problem is that the Microsoft knowledgebase didn’t give the correct answer and there are no log files to be found to help find the correct cause, things were severly complicated by the fact that every search result I could find on the error insisted that it was a security problem. Finally, I had to just guess, and I was right.🙂

The problem turned out to be that I installed another app that switched IIS to use 32-bit mode. All I had to do was switch it back to 64-bit (x64) mode and SharePoint worked again.

First, fix IIS:

\inetpub\AdminScripts\cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 False

Second, reregister the .Net isapi filters:

\windows\microsoft.net\Framework64\v2.0.50727\aspnet_reg
iis.exe -i

That’s it! How about some better logging, Microsoft?

3 comments so far

  1. Neha Patwa on

    Thanks a lot for posting this solution! your solution helped us a lot in sorting out our problem. Thank you very much.

    Regards,
    Neha Patwa

  2. Matt on

    Thank you for this! I about had a heart attack when our standby server went belly up after we installed some new SAN tools. Thanks for this fix!

  3. Yousry Mohamed on

    Thanks man, it fixed the strange issue


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: