ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
753 stars 113 forks source link

Collection was modified; enumeration operation may not execute #250

Open kiranbhadani opened 1 year ago

kiranbhadani commented 1 year ago

We are getting this error frequently in production environment, not able to find the cause of the issue

System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.HashSet`1.Enumerator.MoveNext() at WebOptimizer.Asset.ExpandGlobs(IAsset asset, IWebHostEnvironment env) at WebOptimizer.Asset.GenerateCacheKey(HttpContext context)