Hi everyone,
Today I had a problem with the debugging Sharepoint project. I have got this error: Unable to start debugging on the web server. An error occurred that usually indicates corrupt installation (code 0x80040129)
Some posts lead me to consider correct setting of the application pool, but unfortunately this wasn't my problem.
The reason why I have got this error is that I am running SharePoint 2010 on Windows server 2008 R2 and recently I have installed Visual Studio 2012 and Windows Service Pack 1. So I have both Visual Studios on my development server installed (2010 and 2012). After a while I have found this very useful post http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/45b0ca9c-0454-475e-b9fb-c37e6527965c
Although this was about downgrading VS from 2012 to 2010, cause of the problem was similar, I guess. The solution for this (in my case of course) is to reinstall Service Pack 1 for Visual Studio 2010.
Then everything works like a charm again...
Hope this helps ;)
Wednesday, April 17, 2013
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
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
Subscribe to:
Posts (Atom)