CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

System.IO.IOException: Sharing violation on path ...\TMPE.log #629

Closed originalfoo closed 4 years ago

originalfoo commented 4 years ago

Solution

Potential causes (click links for solutions):

  1. Your disk is full
  2. You incorrectly moved the game to different drive
  3. The game does not have permission to write to the folder shown in the error message (search the error for TMPE.log and folder is shown in front of that). Make sure the game can read/write/delete/list/etc.

Just logging this to make it searchable for future reference:

The Mod D:\SteamLibrary\steamapps\workshop\content\255710\583429740 [TMPE.GenericGameBridge.dll, CSUtil.Commons.dll, TMPE.CitiesGameBridge.dll, TrafficManager.dll, CSUtil.CameraControl.dll] has caused an error [ModException]

Details:
System.IO.IOException: Sharing violation on path D:\SteamLibrary\steamapps\common\Cities_Skylines\Cities_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.Error (System.String s) [0x00000] in <filename unknown>:0
at TrafficManager.State.SerializableDataExtension.OnSaveData () [0x00000] in <filename unknown>:0
at SerializableDataWrapper.OnSaveData () [0x00000] in <filename unknown>:0 
originalfoo commented 4 years ago

https://steamcommunity.com/app/255710/discussions/0/1742265730180417153/