Posts Tagged ‘Index was outside the bounds of the array’

System.Web.HttpUnhandledException – While opening a CRM record

Other day we were getting “Unexpected” exception while opening a ‘Contact’ record.

There were no error details to check at application level.

When I verified my CRM application server’s Event viewer, there was below error log

Exception of type ‘System.Web.HttpUnhandledException’ was thrown.

at System.Web.UI.Page.HandleError(Exception e)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Index was outside the bounds of the array.


  • By resetting the IIS on CRM application servers solved the issue.


  • Not sure what caused this exception, as nothing had been customized on Contact entity.


Issues while installing CRM 4.0 on Windows Server 2008 R2

Errors Screen

While installing CRM 4.0 on Windows Server 2008 R2 server we  will get errors mentioned in above screen

1)    To fix the issue  “Service cisvc was not found on computer XYZ”


  • This is because CRM 4.0 requires the old “Indexing  Service (CISVC)” , which was part of Windows Server 2003


To fix this,  we need to enable the Windows Server 2003 indexing service (cisvc) on current Windows  Server 2008 machine within File Server Role. (Follow below steps)

Enabling CISVC Indexing Service

  • Open “Server Manager”
  • Click on “Roles” link
  • Go to “File Server Role” tab and click on  “Add Roles” link
  • Check “Indexing Service” under “Windows Server 2003 File Services”

2)    To fix the “Service  msftesql was not found”

Reason: –

  • This error comes from conflict between installing Microsoft Dynamics CRM 4.0 with SQL Server 2008.
  • The “msftesql” is the “Microsoft SQL Server Full  Text Indexing Service” which has a different name under SQL Server 2008


  • Open “Registry” (Go to Run -> Regedit)
  • Navigate to “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services” on the tree
  • Rename ‘MSSQLFDLauncher’ Folder to ‘msftesql’
  • Restart the server
  • Go to “Services” (Run ->  Services.msc)
  • Start the “SQL Full-text Filter Daemon  Launcher (MSSQLSERVER)” service
  • Complete the CRM installation
  • Rename back msftesql Folder to  MSSQLFDLauncher (Follow step 1 – 3) 

3)    To fix the “Index was  outside the bounds of the array”

  • Configure “User  Account” which you have given while installing CRM  as service account for Report Server and  Analysis server
  • Instead of  above step, You can even give “Network Service Account” as service account  while installation