Wednesday, April 10, 2013

SqlException (0x80131904): Invalid object name 'AllWebs'

Hi everyone,
recently I have installed service pack 1 and Visual Studio 2012 on my development environment (Windows Server 2008 R2). I have SharePoint 2010 installed and everything looked fine after this upgrade. The problem appeared when I was trying to deactivate sandbox solution. Whenever I was trying to do so, I got this error message:


[SqlException (0x80131904): Invalid object name 'AllWebs'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1099
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +58
System.Data.SqlClient.SqlDataReader.get_MetaData() +112
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6291924
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6292993
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +87
Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock) +716
Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, Boolean retryForDeadLock) +116
Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command) +55
Microsoft.SharePoint.SPFeatureEnumeratorBase.GetNextRowset(GetFeaturesState state, SPContentDatabase contentDB, SPSite site) +980
Microsoft.SharePoint.SPSiteFeatureEnumerator.System.Collections.IEnumerator.Reset() +43
Microsoft.SharePoint.SPSiteFeatureEnumerator..ctor(GetFeaturesState state, SPSite site) +64
Microsoft.SharePoint.SPUserSolutionCollection.RemoveFeatureInstancesAndDefinition(SPFeatureDefinition featdef) +522
Microsoft.SharePoint.SPUserSolutionCollection.Remove(SPUserSolution solution) +279
Microsoft.SharePoint.WebControls.SolutionItemButton.DeactivateItem() +478
Microsoft.SharePoint.WebControls.SPLinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +75
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


I wasn't able to find any similar post on the Internet so I have decided to post my solution ( or at least the way which worked for me) 
At first I thought it is somehow related to my recent installation. But when I opened SharePoint 2010 Central Administration, the Sharepoint Health Analyzer was reporting some critical issues. As it turned out, my database was obsolete and it needed to update. I ran SharePoint 2010 Product Configuration Wizard and that solved the problem. 

Ok then, that should be all. Hope that will help somebody ;)
Best,
David

No comments:

Post a Comment