• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Nicux

Second Lieutenant
24 Badges
Jul 20, 2012
124
72
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings III
  • Cities in Motion 2
  • Cities: Skylines - Campus
  • Imperator: Rome Sign Up
  • Imperator: Rome
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
[ERROR] Collection was modified; enumeration operation may not execute.

InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in <9aea1947a5a14e6e84f644786698b691>:0
at Colossal.IO.AssetDatabase.AssetDatabase+<GetAssets>d__92`1[T].MoveNext () [0x00137] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.IO.AssetDatabase.AssetDatabase.<SaveSettings>b__95_0 () [0x000d9] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.IO.AssetDatabase.AssetDatabase.<SaveSettings>b__95_0 () [0x001a5] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.TaskManager+TaskQueue.RunNextTask (System.String name) [0x000b5] in <f539b356a552460880371c76b71887be>:0
Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
Colossal.Logging.UnityLogger:Log(Level, String, Exception)
Colossal.Logging.UnityLogger:Error(Exception)
Colossal.<RunNextTask>d__11:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:InvokeAction(Object)
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run(Task, Boolean)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:FinishStageThree()
System.Threading.Tasks.Task:FinishStageTwo()
System.Threading.Tasks.Task:Finish(Boolean)
System.Threading.Tasks.Task:TrySetException(Object)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Exception)
Colossal.IO.AssetDatabase.<<SaveSettings>b__95_0>d:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:InvokeAction(Object)
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run(Task, Boolean)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:FinishStageThree()
System.Threading.Tasks.Task`1:TrySetResult(VoidTaskResult)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(VoidTaskResult)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Task`1)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult()
System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder:SetResult()
Colossal.IO.AssetDatabase.Internal.<DisposeAsync>d__5:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.<>c:<.cctor>b__7_0(Object)
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
 
  • 1Like
Reactions:
First, let's eliminate mods, as until they are updated by their authors they can cause problems after any new game patch. Please add --disableModding to the game's Steam launch options. Then start a new test city - do you still get these crashes then?





If so, please try this: Rename the "Cities Skylines II" folder in your C:\Users\[user name]\AppData\LocalLow\Colossal Order (to whatever you want) and then start the game. To see the AppData folder you'll need to enable View Hidden Items in File Explorer.





The game will create a new clean CS2 folder and if that works it means that something in your original folder is corrupt and preventing the game from starting. Do NOT delete your original folder though as your saves are stored there and if you want to keep playing you'll need to move them over to the new fresh folder!





Let us know if that helps you. Good luck!
 
First, let's eliminate mods, as until they are updated by their authors they can cause problems after any new game patch. Please add --disableModding to the game's Steam launch options. Then start a new test city - do you still get these crashes then?





If so, please try this: Rename the "Cities Skylines II" folder in your C:\Users\[user name]\AppData\LocalLow\Colossal Order (to whatever you want) and then start the game. To see the AppData folder you'll need to enable View Hidden Items in File Explorer.





The game will create a new clean CS2 folder and if that works it means that something in your original folder is corrupt and preventing the game from starting. Do NOT delete your original folder though as your saves are stored there and if you want to keep playing you'll need to move them over to the new fresh folder!





Let us know if that helps you. Good luck!
I can't seem to rename the file. I keep getting :
Screenshot 2025-07-14 043848.png
Screenshot 2025-07-14 043815.png

So I remove the files from inside the Cities Skylines II folder that I could remove. And it still did not work.
 
Possible an AV app is preventing it. Reboot the PC, you can rename it then I'm sure.


If that does not help, Can you please provide the player.log
Located in \AppData\LocalLow\Colossal Order\Cities Skylines II (To see the AppData folder you’ll need to enable View Hidden Items in File Explorer)
 
Possible an AV app is preventing it. Reboot the PC, you can rename it then I'm sure.


If that does not help, Can you please provide the player.log
Located in \AppData\LocalLow\Colossal Order\Cities Skylines II (To see the AppData folder you’ll need to enable View Hidden Items in File Explorer)
I had done that but the same issue couldn’t rename
 
I had done that but the same issue couldn’t rename
Well, as I say that will be an AV app most likely.

Make a new Windows user profile on this PC and try the game under that, it will use a different user/AppData folder anyway.