Server Error in '/' Application.

Collection was modified after the enumerator was instantiated.

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.InvalidOperationException: Collection was modified after the enumerator was instantiated.

Source Error:


Line 1141:        if (Url != "" && Lang != "")
Line 1142:        {
Line 1143:            foreach (SeoInfo sinf in _CatSeoInfoListItems.Values)
Line 1144:            {
Line 1145:                if (sinf.MetaURL != null)

Source File: c:\inetpub\wwwroot\GhidiniV2\App_Code\_Environment.cs    Line: 1143

Stack Trace:


[InvalidOperationException: Collection was modified after the enumerator was instantiated.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +61
   System.Collections.Generic.SortedListValueEnumerator.MoveNext() +8364943
   GlobalEnvironment.GetSeoCleanedUrlIdItem(String Url, String Lang) in c:\inetpub\wwwroot\GhidiniV2\App_Code\_Environment.cs:1143
   CoperonWebForm.DetectItemID(Boolean Exep) in c:\inetpub\wwwroot\GhidiniV2\App_Code\CoperonWebForm.cs:565
   ProjectDS.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\GhidiniV2\ProjectDS.aspx.cs:68
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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