locked
Error Configuring ADFS in AD Connect - IndexOutOfRangeException RRS feed

  • Question

  • I am configuring ADFS in AD Connect and receive an IndexOutOfRangeException when transitioning from the Credentials page to the Service Account page. Below is the relevant info from the log. Any idea how to correct this?

    [13:35:12.097] [ 28] [INFO ] Page transition from "Credentials" [ConfigFederationServerCredentialsPageViewModel] to "Service account" [ConfigServiceAccountPageViewModel]
    [13:35:12.100] [ 28] [ERROR] RootWizardPageViewModel: An unhandled exception occurred during a page load.
    Exception Data (Raw): System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.Online.Deployment.Framework.MVVM.Validation.ValidateUsernameFormatAttribute.Format(String username, UsernameFormat desiredFormat)
       at Microsoft.Online.Deployment.OneADWizard.UI.Controls.Credentials.InputCredentialsViewModel.set_Username(String value)
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigServiceAccountPageViewModel.OnLoad(NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
    [13:35:12.180] [  2] [ERROR] A terminating unhandled exception occurred.
    Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.Online.Deployment.Framework.MVVM.Validation.ValidateUsernameFormatAttribute.Format(String username, UsernameFormat desiredFormat)
       at Microsoft.Online.Deployment.OneADWizard.UI.Controls.Credentials.InputCredentialsViewModel.set_Username(String value)
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigServiceAccountPageViewModel.OnLoad(NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.MoveNext()
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigFederationServerCredentialsPageViewModel.ValidateCredentials()
       at System.Threading.Tasks.Task.Execute()
       --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.Online.Deployment.Framework.MVVM.Validation.ValidateUsernameFormatAttribute.Format(String username, UsernameFormat desiredFormat)
       at Microsoft.Online.Deployment.OneADWizard.UI.Controls.Credentials.InputCredentialsViewModel.set_Username(String value)
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigServiceAccountPageViewModel.OnLoad(NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.MoveNext()
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigFederationServerCredentialsPageViewModel.ValidateCredentials()
       at System.Threading.Tasks.Task.Execute()<---

    Thursday, January 26, 2017 6:48 PM

Answers

  • Hi,

    I suggest you to refer Azure AD Connect Upgrade Fails – IndexOutOfRangeException resolution in the following link below:
    https://blog.kloud.com.au/2016/02/26/feb-2016-azure-ad-connect-upgrade-fails-indexoutofrangeexception-resolution/ for solution.

    Hope this helps!

    Regards
    Vijisankar
    _________________________________________________________________________________________________________________

    Disclaimer: This response contains a reference to a third party World Wide Web site. 
    Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. 
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Friday, January 27, 2017 10:01 AM

All replies

  • Hi,

    I suggest you to refer Azure AD Connect Upgrade Fails – IndexOutOfRangeException resolution in the following link below:
    https://blog.kloud.com.au/2016/02/26/feb-2016-azure-ad-connect-upgrade-fails-indexoutofrangeexception-resolution/ for solution.

    Hope this helps!

    Regards
    Vijisankar
    _________________________________________________________________________________________________________________

    Disclaimer: This response contains a reference to a third party World Wide Web site. 
    Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. 
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Friday, January 27, 2017 10:01 AM
  • Hi Vijisankar,

    Unfortunately, this didn't solve the issue. The exception that I see in the log is different than the one shown in the solution. What I see in the log is for the page transition from Credentials to Service Account:

    [13:48:25.828] [ 11] [INFO ] Page transition from "Credentials" [ConfigFederationServerCredentialsPageViewModel] to "Service account" [ConfigServiceAccountPageViewModel]
    [13:48:25.877] [ 11] [ERROR] RootWizardPageViewModel: An unhandled exception occurred during a page load.
    Exception Data (Raw): System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.Online.Deployment.Framework.MVVM.Validation.ValidateUsernameFormatAttribute.Format(String username, UsernameFormat desiredFormat)
       at Microsoft.Online.Deployment.OneADWizard.UI.Controls.Credentials.InputCredentialsViewModel.set_Username(String value)
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigServiceAccountPageViewModel.OnLoad(NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)

    Friday, January 27, 2017 6:53 PM
  • Hi,

    Could you please check if the ADFS service account is in the format of username@domain.com instead of “domain\username” (on the ADFS server itself via services.msc)?  

    Regards,
    Vijisankar 


    Tuesday, January 31, 2017 10:13 AM
  • I have the same issue and when I looked yesterday the AD FS service account is account@domain name 

    Your question does not state how it should be or if it should be changed Can you confirm the exact format required ?

    Here is the error condition

     Page transition from "Credentials" [ConfigFederationServerCredentialsPageViewModel] to "Service account" [ConfigServiceAccountPageViewModel]
    [12:53:18.447] [ 26] [ERROR] RootWizardPageViewModel: An unhandled exception occurred during a page load.
    Exception Data (Raw): System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.Online.Deployment.Framework.MVVM.Validation.ValidateUsernameFormatAttribute.Format(String username, UsernameFormat desiredFormat)
       at Microsoft.Online.Deployment.OneADWizard.UI.Controls.Credentials.InputCredentialsViewModel.set_Username(String value)
       at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigServiceAccountPageViewModel.OnLoad(NavigateDirection direction)
       at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
    [12:53:18.565] [  2] [ERROR] A terminating unhandled exception occurred.

    Wednesday, February 15, 2017 2:17 PM
  • So here’s what you need to do:

    1. Log into the ADFS servers
    2. Open services.msc
    3. Locate the ADFS service, right-click, properties
    4. Go to the Log On tab
    5. Change the format of the service account from name@domain.com to domain\name (keep the same account, do not change it)
    6. Restart the ADFS service

    Then AAD Connect won’t have this problem.



    Thursday, February 16, 2017 6:06 PM