Symptoms
Issue _1:
We have K2 Blackpearl KB001200 installed on Environment with Windows Server 2008 R2 and SQL Server 2008 R2. We are upgrading to KB001420 version. But we are unable to proceed from Service Accounts Configuration page. We are getting the following error
Exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
StackTrace: at System.Collections.ArrayList.get_Item(Int32 index)
at System.DirectoryServices.ResultPropertyValueCollection.get_Item(Int32 index)
at SourceCode.Install.Common.MailServer..ctor(SearchResult result)
at SourceCode.Install.Common.Network.GetMailServers()
at SourceCode.SetupManager.UI.Panels.IncomingMailPanel.LoadMailServers()
at SourceCode.SetupManager.UI.Panels.IncomingMailPanel.PopulateControls()
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at SourceCode.SetupManager.Panels.BasePanel.PanelActivate()
at SourceCode.SetupManager.UI.Panels.IncomingMailPanel.PanelActivate()
at SourceCode.SetupManager.Main.navigateNext()
Issue _2:
Customer has custom connection strings located in K2HostServer.exe.config for blackpearl 4.5 1200. After the upgrade to 4.6.6, the connection string is not found in the config file.
Diagnoses
Issue _1:
This is a known issue with the installer for 4.5 update 1420.
Issue _2:
In 4.6.6, K2 use K2HostServer.exe.config instead of K2HostServer.config unlike 4.5 update 1200. This is the reason that this config file got modified during the upgrade.
Resolution
Issue _1:
Suggested customer to perform the following steps to resolve the issue:
1. Run the installer, progress till you reach the Service Account Configuration Screen that gives you the error.
2. Click Back (goes back to the screen before Service Account Configuration) , followed by Next, this should bring you back into the Service Account Configuration Screen.
3. Try to click on the Next again to progress.
4. Progress as per normally you would for the upgrade.
Issue_2:
Follow the decrypt connection string per following reference, we were able to see the custom connection string in the config file.
http://peterblommendaal.wordpress.com/2012/06/02/k2-smartactions-configuration-tips/
To modify the connection string, please do the reverse steps as follow:
1.make the change to the web.config in Test folder
2.rename the file back to K2HostServer.exe.config
3.replace this file in iInstall Dir]K2 blackpearlHost ServerBin
4.restart K2 service.