The below error may occur when editing a GPO. Even with the error, the GPO can be modified and deployed successfully.
Error message : 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
Server stack trace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Quest.Avalanche.Interfaces.PolicyRegistry.PolFileReader.Read(Stream stream, String fileName)
at Quest.Avalanche.Interfaces.PolicyRegistry.PolicyRegistryIO.ReadPolicyRegistrySettings(String policyFolder, String fileFilter)
at Quest.Avalanche.VersionControl.VersionControlManager.GetWorkingCopyRegistrySettings(Guid controlledObjectId)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Quest.Avalanche.Interfaces.IVersionControlManager.GetWorkingCopyRegistrySettings(Guid controlledObjectId)
at Quest.Avalanche.Wizards.Policy.SettingsPage.IsRegistryCleanupRequired()