Skip Ribbon Commands
Skip to main content

Robin | zevenseas | SharePoint Blog

:

The zevenseas Community > Blogs > Robin | zevenseas | SharePoint Blog > Posts > New MOSS SP2 bug .. continued and problem solved!
July 17
New MOSS SP2 bug .. continued and problem solved!

Remember that I blogged about problem that I had (New MOSS SP2 bug) where suddenly my SharePoint environment died and was giving me the error in the event viewer :

The schema version (3.1.10.0) of the database SharePoint_AdminContent_5e188b87-c7a8-4e0a-a488-b21a4a89e941 
on mosswin2k3 is not consistent with the expected database schema version (3.1.3.0) on mosswin2k3.  
Connections to this database from this server have been blocked to avoid data loss.  
Upgrade the web front end or the content database to ensure that these versions match.

Well.. I had pinpointed the problem to the fact I was using a function of WSPBuilder called “Copy to GAC”. Now this function copies all the .dll’s from the debug/release folder of your project into the GAC. I worked on a solution which I had worked on my local machine before I took into my VPC to develop on. During that time I had copied all the SharePoint dll’s locally in my project (eg. ‘Copy Local’ of the references were set to True) so I could develop against the SharePoint API.

So you can guess what happens if the “Copy to GAC” function copies old versions of the SharePoint .dll’s in the GAC right? ;) Yes, SharePoint was now dealing with old dll’s in the GAC while the databases were running on a higher version. When I copied the .dll’s back from the ISAPI folder in the 12 hive into the GAC, everything worked again! w00h00w!

Concluding that the schema version error was absolutely right and it made sense that the PSConfig could not find the new types that were introduced with SP2 and thus failed. So I wasn’t a bug but merely a stupid action on my account where I didn’t pay attention to the output window of the WSPBuilder of which .dll’s were copied during the “Copy to GAC” function.

 

Want to thanks Neil Hodgkinson as well for his valuable time in supporting me with this issue ;)

Technorati Tags:

Comments

John Manning

Why would the WSP builder be including MOSS system files??!? You shouldn't be deploying those as part of a WSP.
System Account on 17/07/2009 07:53

Robin

Hi John,

if you read more carefully I'm saying that  I make use of the function called "Copy to GAC" that is part of the tool WSPBuilder. This function copies the newly built .dll that is outputted in the debug or release folder into the GAC.

What happened to me was that I had copied the SharePoint .dll's locally into my project and there the function that copies the .dll's also copied these .dll's into the GAC.

So it's not the fault of WSPBuilder nor did I intend to deploy those .dll's as part of my WSP.
System Account on 18/07/2009 08:47

Rodrigo

Dear all, thanks for your answers.

I'm very frustrated about one issue similar like that.

This is my layout:
- 1 Server Web Front End (MOSS 2007 with SP2).
- 1 Server SQL Server 2005.

I am trying to install one more Web Front End so, I have proceed with installing Office SharePoint Server 2007 Win32 English. But, after running installation I run "SharePoint Products and Technologies Configuration Wizard", I tried to connect to an existing server farm, I specify the database and domain windows account and running the wizard I get this error message:

"Failed to connect to the configuration database.

An Exception of type System.InvalidOperationException was thrown. Additional exception information: Operation is not valid due to the current state of the object."

I have seen in the event viewer the 3 following events:

EVENT ID 5617:

The schema version (3.1.10.0) of the database SharePoint_AdminContent_4795276a-aec1-48c6-a1ed-13bc65c79ab9 on DB_SERVER_NAME is not consistent with the expected database schema version (3.0.149.0) on MACHINE_NAME.  Connections to this database from this server have been blocked to avoid data loss.  Upgrade the web front end or the content database to ensure that these versions match.

EVENT ID 104:
Failed to connect to the configuration database.
An exception of type System.InvalidOperationException was thrown.  Additional exception information: Operation is not valid due to the current state of the object.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Microsoft.SharePoint.Administration.SPContentDatabase.ValidateDatabaseSchemaCompatibility()
   at Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request)
   at Microsoft.SharePoint.SPWeb.InitializeSPRequest()
   at Microsoft.SharePoint.SPWeb.EnsureSPRequest()
   at Microsoft.SharePoint.SPWeb.get_Request()
   at Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName)
   at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName)
   at Microsoft.SharePoint.SPListCollection.Undirty()
   at Microsoft.SharePoint.SPBaseCollection.System.Collections.IEnumerable.GetEnumerator()
   at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.get_AdministrativeTasks()
   at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.EnsureSystemTask(String title, String description, Int32 priority, String actionTitle, String actionUrl, String service, String systemId)
   at Microsoft.SharePoint.Administration.SPWebApplication.Provision()
   at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()
   at Microsoft.SharePoint.Administration.SPFarm.Join()
   at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
   at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()


EVENT ID 100:
Configuration of SharePoint Products and Technologies failed.  Configuration must be performed in order for this product to operate properly.  To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS\PSCDiagnostics_10_21_2009_9_29_0_901_1519056841.log, fix the problem, and run this configuration wizard again.


How can I solve it???? It's impossible to continue. I suppose that it is because the server farm is with the last SP (SP2) and I am trying to configure SharePoint in another server with a previous version... But is there any protocol to do it?.

Thank you!!!.
System Account on 21/10/2009 01:02
 

 Statistics

 
Views: 3867
Comments: 3
Tags:
Published:1408 Days Ago