Share via


Service Manager 2010: Unable to add the webpart on SharePoint intergrated Service Portal after Upgrading to SP1

Problem Description

After upgrading the System Center Service Manager 2010 from RTM to SP1, we failed to add the web part through SharePoint website(integrated with Service Manager Web Portal).

It reported the following error.

Unable to add selected web part(s).

Top Announcements: Object reference not set to an instance of an object.

We also have the following error information after enabling the verbose log in SharePoint website.

01/31/2011 16:14:50.72 w3wp.exe (0x3DDC) 0x43AC Windows SharePoint Services Web Parts 89ku High Failed to add webpart http%253A%252F%252Fca%252Dsyd%252Dsms%252D101%253A16096%252Fsites%252FPortal%252F%255Fcatalogs%252Fwp%252FAnnouncements%252EWebPart;Top%2520Announcements. Exception Microsoft.SharePoint.WebPartPages.WebPartPageUserException: Object reference not set to an instance of an object . ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.EnterpriseManagement.ServiceManager.Portal.Common.SdkQueryUtility.GetClass(Guid classId) at Microsoft.EnterpriseManagement.ServiceManager.WebParts.Announcements.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPart(WebPart webPart) at System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddDynamicWebPart(WebPart webPart) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebPart(WebPart aspWebPart, String zoneId, Int32 zoneIndex, Boolean isClosed) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternalShared(WebPart webPart) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked) --- End of inner exception stack trace --- at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset, Boolean throwIfLocked) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartInternal(SPSupersetWebPart superset) at Microsoft.SharePoint.WebPartPages.WebPartQuickAdd.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

 

Cause

 

This problem is caused by the .dll files used by the SharePoint integrated website is still RTM version. We need to replace them manually with the SP1 verion files.

 

 


 

 

Resolution

 

 

1. Check the dll file version under the SharePoint website, which is integrated with Service Manager Portal

   C:\inetpub\wwwroot\wss\VirtualDirectories\
bin

For example, C:\inetpub\wwwroot\wss\VirtualDirectories\16096\bin

Make sure most of the files version is 7.0.6555.0

2. If the file version in the above folder is less than 7.0.6555.0, please do the following actions.

a. Backup the folder “C:\inetpub\wwwroot\wss\VirtualDirectories
\bin”

b. Go to the System Center Service Manager Portal installation folder, by default it is as following

   C:\inetpub\wwwroot\System Center Service Manager Portal\Analyst\Bin

There should be 18 .dll files under the folder and most of them are version 7.0.6555.0. Copy these 18 .dll files to replace the files mentioned in step 1.

c. Go to the C:\inetpub\wwwroot\System Center Service Manager Portal\Analyst\Bin\en, copy the 5 .dll files, and replace the files in the following path "C:\inetpub\wwwroot\wss\VirtualDirectories
\bin\en"

d. Search the following two files on the Service Manager Management Server.

   C:\inetpub\wwwroot\wss\VirtualDirectories
\bin

   Microsoft.EnterpriseManagement.ServiceManager.WebParts.dll

   C:\inetpub\wwwroot\wss\VirtualDirectories
\bin\en

   Microsoft.EnterpriseManagement.ServiceManager.WebParts.resources.dll

In case either of them is less than 7.0.6555.0, please search the files to find out the latest version and replace in the above folder as well.

e. Open a DOS command line with the administrative right, then input “iisreset” to restart the IIS services.