CitiesSkylinesMods / TMPE

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

error loading mod #1711

Closed Ahmedkmt closed 1 year ago

Ahmedkmt commented 1 year ago

A Mod caused an error [System.Exception]

Details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\DODI-Repacks\Cities Skylines\Cities_Data\TMPE.log" is denied. at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :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 :0 at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at System.IO.File.AppendText (System.String path) [0x00000] in :0 at CSUtil.Commons.Log.LogToFile (System.String log, LogLevel level) [0x00000] in :0 at CSUtil.Commons.Log.Info (System.String s) [0x00000] in :0 at TrafficManager.State.Options.MakeSettings (.UIHelper helper) [0x00000] in :0 at TrafficManager.Lifecycle.TrafficManagerMod.OnSettingsUI (.UIHelper helper) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

krzychu124 commented 1 year ago

https://github.com/CitiesSkylinesMods/TMPE/wiki/System.IO.IOException