Jesoba.com is launched, Click below image to access it

Jesoba.com is launched, Click below image to access it
Technology and Entertainment Blog

SharePoint Index was out of range

SharePoint Index was out of range

Issue Title: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Error Information: We get below error when SharePoint Configuration wizard fails at step 7 of 10. Step 7 is to provision SharePoint Central Admin site.

06/14/2012 01:03:24  1  ERR            Failed to provision the SharePoint Central Administration Web Application.
An exception of type System.ArgumentOutOfRangeException was thrown.  Additional exception information: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
  at System.DirectoryServices.PropertyValueCollection.get_Item(Int32 index)
  at Microsoft.SharePoint.Administration.SPIisMimeMap.get_MimeMap()
  at Microsoft.SharePoint.Administration.SPProvisioningAssistant.EnsureMimeMap()
  at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionWebApplication(String webApplicationName, String applicationPoolName, SPIisSettings[] settings, Boolean adminWebApp)
  at Microsoft.SharePoint.Administration.SPWebApplication.ProvisionIisWebSitesAsAdministrator()
  at Microsoft.SharePoint.Administration.SPWebApplication.ProvisionIisWebSites()
  at Microsoft.SharePoint.Administration.SPWebApplication.Provision()
  at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.Provision()
  at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()
  at Microsoft.SharePoint.PostSetupConfiguration.CentralAdministrationSiteTask.ProvisionAdminVs()
  at Microsoft.SharePoint.PostSetupConfiguration.CentralAdministrationSiteTask.Run()
  at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
 
Configuration\Setup: SBS Windows Server 2008, IIS 7, SQL Server 2008, SharePoint Server 2010 or WSS 3, In our case it was WSS 3
Observation:
1. When we accessed SharePoint site we get Error:"Internet Explorer cannot display the webpage."
2. SharePoint never worked on the server we confirmed this by checking old SharePoint logs.
 
Solution:
Do not try anything (Re-provision Central Admin, Config Wizard, PSCONFIG Force upgrade, Clear Cache, Repair SharePoint, Reapply permissions, Reinstall IIS etc.) as we have already tried these troubleshooting steps and nothing helped. You might see other blog telling reinstalling IIS fixes the issue but that is not true at all. Reinstalling IIS will create more issues, your OWA (Exchange) and RWW will also break.
We had faced this issue and invested lot of times and finally contacted Microsoft Technical Support.
As per Microsoft, the final and only solution for this issue is to Backup data and reinstall everything (OS, Application etc.) from scratch.

Note:

- If you still want to try some troubleshooting then please.. please... take complete system snapshot or and full backup and IIS Backup, otherwise you will be in big trouble, I have already burnt my finger and I don't want you to face such problem again.

- While repairing SharePoint we got error: Error 1406. Setup cannot write the value QMEnable to the registry key. Assigned permission to SharePoint Farm a/c on registry and rebooting server fixed this error.

- Don't forget to document system settings like network settings, IIS settings etc.
 
Keywords: SharePoint+WSS 3+SBS+ArgumentOutOfRangException+Index was out of rang
 
Please do share your experience about this issue with us, we welcome your comments and feedback.

No comments:

Google+ Badge

About Author

My photo

I am Senior Server Expert and Professional Blogger.