Cities: Skylines

Cities: Skylines

TM:PE 11.9.1.0 STABLE (Traffic Manager: President Edition)
 This topic has been pinned, so it's probably important
A Mod caused an error [System.Exception]
Hi,

I have recently moved my C:S installation onto an external HD, and I am now trying to play it for the first time. When I activate the Mods, TM:PE gives back the following error:

A Mod caused an error [System.Exception]

Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Sharing violation on path /Volumes/Archive/Steam Library/steamapps/common/Cities_Skylines/Cities.app/Contents/TMPE.log
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
at System.IO.File.AppendText (System.String path) [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.LogToFile (System.String log, LogLevel level) [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.InfoFormat (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at TrafficManager.TrafficManagerMod.OnEnabled () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

I have tried unsubscribing and subscribing to it again and again, to no avail. Could you please let me know what I can do, as I do not really know how to interpret the above?

Many thanks!
< >
Showing 1-8 of 8 comments
Krzychu1245  [developer] Jul 17, 2020 @ 2:15pm 
Troubleshooting[github.com]
LolBatmanHuntsU Apr 29, 2021 @ 3:39pm 
Should anyone find themselves facing this issue and none of the solutions in the troubleshooting page work. Make sure windows defender (or any antivirus software) has not restricted access to the cities data
folder.
Last edited by LolBatmanHuntsU; Apr 29, 2021 @ 3:39pm
ALMS1315 Jun 17, 2021 @ 8:00pm 
Tengo el mismo problema, encontraste la solución?
One1eks1 Jul 8, 2021 @ 10:30pm 
If you want you can go back to previous version by download

TMPE_11.5.1_STABLE.zip from github (Or older version)

copy and paste it on Steam workshop folder

(SteamLibrary\steamapps\workshop\content\255710\1637663252)

*Maybe different folder on your PC
The issue arises every time there is a new release/DLC addition to the main program: the macOS system identifies it as a new program and therefore verifies it, which leads to causing the problem. It also seems that on my system I cannot prevent the new software from quarantining.
Krzychu1245  [developer] Aug 10, 2021 @ 10:43am 
The reason might be completely different. Please check this thread[github.com] for more info.
cheshire.panther Sep 14, 2021 @ 7:38pm 
Can confirm I'm facing similar issue, after I *simlinked* dowser_Data to cities_Data

A Mod caused an error [System.Exception]

Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "\.local\share\Steam\steamapps\common\Cities_Skylines\dowser_Data\TMPE.log".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
at System.IO.File.AppendText (System.String path) [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.LogToFile (System.String log, LogLevel level) [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.InfoFormat (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at TrafficManager.TrafficManagerMod.OnEnabled () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

Jakren Mar 11 @ 3:57am 
Hello, in case anyone encounters this problem on MacOS, here is what worked for me. You need to allow full access to the drive in System settings -> Privacy and security -> Full disk access. I allowed access to both the Paradox launcher and Cities Skylines. You can simply drag-and-drop the game package that you can find via Browse local files into the menu in System settings. The mods are stored in a different folder, so the game needs access to the rest of your drive to load them (I assume).
< >
Showing 1-8 of 8 comments
Per page: 1530 50