Hi.
I have a branding solution that adds Custom Masterpage and CSS files and also a Custom TabbedWebPart as two separate features. This WSP was deployed to our SharePoint 2010 Farm as Version 1.0.0.0.
I have since revised 3 lines of code in a .cs file within the solution and updated the Version in Visual Studio to 1.0.0.1. I then rebuilt the solution as a Release version and used the following commands to update and reactivate the updated WSP:
Update-SPSolution -Identity MySolution.wsp -LiteralPath "C:\Path-To-Solution\MySolution.wsp" -GACDeployment
Then wait for update deployment job to finish.
Then run
Install-SPSolution -Identity MySolution.wsp -AllWebApplications -GACDeployment -Force
Then wait for the install deployment job to complete.
After the update and when I reload a page in SharePoint an error appears on existing instances of the Tabbed Web Part saying the following:
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type MyFeature.UX.TabbedWebPart.TabbedWebPart, MyFeature.UX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b51139fa56359c26 could not be found or it is not registered as safe. Show Error Details Hide Error Details [UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type MyFeature.UX.TabbedWebPart.TabbedWebPart, MyFeature.UX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b51139fa56359c26 could not be found or it is not registered as safe.] at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid, Guid solutionId, String assemblyFullName, String typeFullName, Boolean throwIfNotFound) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
Why does the new version not get deployed and reactivated correctly?