Hi,
When we are trying to deploy a WSP , below is the error message :
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.Microsoft.SharePoint.Administration.ISPPersistedStoreProvider.GetParent(SPPersistedObject persistedObject)
at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.get_DisplayName()
at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.SetSolutionFile(SPFarmSolutionPackage solnPackage, String path, String solutionName, Boolean isRestore)
at Microsoft.SharePoint.Administration.SPSolution.AddLanguagePack(SPFarmSolutionPackage solnPackage, String path, UInt32 lcid, String name, Boolean isRestore)
at Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, String name, UInt32 lcid, Boolean isRestore)
at Microsoft.SharePoint.PowerShell.SPCmdletAddSolution.CreateDataObject()
at Microsoft.SharePoint.PowerShell.SPNewCmdletBase`1.InternalProcessRecord()
at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
Tried the below but could not help:
1) Restarted Timer service
2) Deployed using PowerSHell / Directly with Visual studio
3) Restarted IIS
4) Cleared Timer Job cache
5) Restarted server
6) Executed configuration wizard
Below are the other observations:
1) Event Viewer showing the error “The SharePoint Timer Service service terminated unexpectedly. It has done this 12 time(s). The following corrective action will be taken in 30000 milliseconds: Restart the service.” Every 3 mins.,, Event ID 7031
2) All the SP services are running as expected