Compatibility range mismatch

When I tried to run the following PowerShell:

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$site = Get-SPSite $spsiteUrl

$site.AllWebs

I got the following error:

There is a compatibility range mismatch between the Web server and database “WSS_Content”, and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.

Shell admin access

I gave my user account Shell Admin access and then I could access the webs within a site.

All I had to do was give my user account SP_Data_Access permissions on the content database mentioned. I already worried that I hadn’t run an update properly.

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

One thought on “There is a compatibility range mismatch between the web server and database”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.