locked
Sharepoint 3.0 Operation is not valid due to the current state of the object RRS feed

  • Question

  • I have a sharepoint site which after upgrading to 3.0 from 2.0 was giving internal server errors. Which i have resolved (IIS and Dcom errors). 

    OS is Server 2003 R2, Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

    The error I have is (turned off custom errors and turned on call stack).

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

    Stack Trace: 


    [InvalidOperationException: Operation is not valid due to the current state of the object.]
       Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String bstrUrl, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags) +0
       Microsoft.SharePoint.Library.SPRequest.OpenWebInternal(String bstrUrl, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags) +168
       Microsoft.SharePoint.SPWeb.InitWebPublic() +522
       Microsoft.SharePoint.SPWeb.get_Locale() +122
       Microsoft.SharePoint.WebPartPages.Utility.SetThreadCulture(SPWeb spWeb, Boolean force) +70
       Microsoft.SharePoint.WebPartPages.Utility.SetThreadCulture(SPWeb spWeb) +46
       Microsoft.SharePoint.CoreResource.GetString(ResourceGroup rg, String name, Object[] values) +737
       Microsoft.SharePoint.SPResource.GetString(String name, Object[] values) +39
       Microsoft.SharePoint.Administration.SPContentDatabase.ValidateDatabaseSchemaCompatibility() +486
       Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) +59
       Microsoft.SharePoint.SPWeb.InitializeSPRequest() +262
       Microsoft.SharePoint.SPWeb.EnsureSPRequest() +58
       Microsoft.SharePoint.SPWeb.get_Request() +53
       Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId) +1494
       Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) +718
       Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetFileForRequest(HttpContext context, SPWeb web, Boolean exclusion, String virtualPath) +233
       Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.InitContextWeb(HttpContext context, SPWeb web) +104
       Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context) +396
       Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context) +31
       Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea) +385
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

     

    Anybody any ideas as to what is causing the issue? 

    Friday, June 29, 2012 11:49 AM

All replies

  • Hi!

    Start Here, a good point


    MVP Office Development, MCP, MCTS SharePoint 2010 Development

    Friday, June 29, 2012 1:55 PM
  • Thats appears to be for 2007 and also regarding a DR site. This is a single server environment so not sure if that is applicable?  
    Friday, June 29, 2012 2:55 PM
  • Single Server can be configured as Farm, or is installed as Stand Alone? I'm pointing this error to a null value, where? you have to see the WSS Logs. Tip: Copy to a Excel File it will be formated as cells and you can apply filters

    MVP Office Development, MCP, MCTS SharePoint 2010 Development


    • Edited by Joao Livio Friday, June 29, 2012 4:10 PM
    Friday, June 29, 2012 4:08 PM
  • Hi,

    How many servers do you have? If more than one, the cause could be patch installed on one server but not the other, and psconfig had not been run.

    So please make sure you install wss sp2 and moss sp2 on all servers, and run configuration wizard on them.

    Thanks,

    Rock Wang

    Forum Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Rock Wang TechNet Community Support

    Monday, July 2, 2012 5:59 AM
  • I only have the one server. I'm just downloading the SP2 now but i think thats installed. 
    Tuesday, July 3, 2012 12:39 PM
  • Hi,

    Please check whether your SharePoint server’s version is SP2, its version number is 12.0.6421.1000.

    You can also look into the ULS and event log to find more useful information according to time frame.

    In addition, I provide you a link about how to determine the installed SharePoint version for your reference:

    http://insomniacgeek.com/how-to-determine-the-installed-sharepoint-version/

    Thanks,

    Rock Wang

    Forum Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Rock Wang TechNet Community Support

    Thursday, July 5, 2012 9:31 AM
  • The Current version listed in Sharepoint is 12.0.0.6608 - So that would indicate its not upgraded the databases properly?

    EDIT: - infact its looks like its gone proper pete tong?

    Toby


    • Edited by TimBrowne1 Thursday, July 5, 2012 11:02 AM
    Thursday, July 5, 2012 10:52 AM