SharePoint 2010 Specifying a Relative Portal Site Connection Link

Want to make the portal site connection link relative so that it works for different zones.  A couple of articles say it will work with code, however, it doesn't with me. Web Server and SQL server are 2008 R2.  SQL server is running Ent 2008. Both have .NET 3.51.

Here's the code I'm running:
http://social.technet.microsoft.com/Forums/en-US/sharepointadminlegacy/thread/89c60e6c-2e98-46c8-bec3-067c63c66a16/?prof=required

Here's what result I'm getting:
The following error occurred while executing the snippet:
Microsoft.SharePoint.Upgrade.SPUpgradeCompatibilityException: There is a compati
bility range mismatch between the Web server and database "SharePointSiteConten
t", 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 upgr
aded to the same version and build level to return to compatibility range.
   at Microsoft.SharePoint.Administration.SPPersistedUpgradableObject.ValidateBa
ckwardsCompatibility()
   at Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request)
   at Microsoft.SharePoint.SPSite.GetSPRequest()
   at Microsoft.SharePoint.SPSite.get_Request()
   at Microsoft.SharePoint.SPSite.set_PortalUrl(String value)
   at MyClass.RunSnippet()
   at MyClass.Main()
---
imhersonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Justin SmithConnect With a Mentor Sr. System EngineerCommented:
Central Admin - Upgrade and Migration - Check Database status.

Anything stick out?
0
 
imhersonAuthor Commented:
No actions required  My appologies for not getting back to you sooner.  I was in training last week.
0
 
imhersonAuthor Commented:
There were a couple of databases that were not upgraded.
0
All Courses

From novice to tech pro — start learning today.