Server Error in '/ADC.NET' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.ArrayList.Add(Object value) +28
   System.Collections.Specialized.NameObjectCollectionBase.BaseAdd(String name, Object value) +98
   System.Collections.Specialized.NameValueCollection.Add(String name, String value) +144
   Art.Common.ConfigurationWrapper.ConfigurationHelper.<GetServiceURL>b__1(ChannelEndpointElement bindings) +82
   System.Linq.Parallel.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) +83
   System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() +45
   System.Linq.Parallel.SpoolingTaskBase.Work() +184
   System.Linq.Parallel.QueryTask.BaseWork(Object unused) +62
   System.Linq.Parallel.QueryTask.RunTaskSynchronously(Object o) +41
   System.Threading.Tasks.Task.InnerInvoke() +67
   System.Threading.Tasks.Task.Execute() +66

[AggregateException: One or more errors occurred.]
   System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) +276
   System.Linq.Parallel.SpoolingTask.SpoolForAll(QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler) +187
   System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute() +137
   System.Linq.Parallel.MergeExecutor`1.Execute() +40
   System.Linq.Parallel.MergeExecutor`1.Execute(PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) +476
   System.Linq.Parallel.PartitionedStreamMerger`1.Receive(PartitionedStream`2 partitionedStream) +75
   System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream(PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) +318
   System.Linq.Parallel.ChildResultsRecipient.Receive(PartitionedStream`2 inputStream) +135
   System.Linq.Parallel.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +146
   System.Linq.Parallel.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +572
   System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) +433
   System.Linq.Parallel.ForAllOperator`1.RunSynchronously() +212
   System.Linq.ParallelEnumerable.ForAll(ParallelQuery`1 source, Action`1 action) +90
   Art.Common.ConfigurationWrapper.ConfigurationHelper.GetServiceURL(String bindingName) +256
   ADC.Web.Code.JSConfigHelper..cctor() +11

[TypeInitializationException: The type initializer for 'ADC.Web.Code.JSConfigHelper' threw an exception.]
   ADC.Web.Code.JSConfigHelper.GetSiteAppConfig(Boolean includeScriptTags, Boolean includeMGVariables) +1919
   ADC.Web.Root.Pages.Master.BasePage.AddJsCssIntoHeader() +725
   ADC.Web.Root.Pages.Master.BasePage.Page_Load(Object sender, EventArgs e) +1189
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025