VictorPhilipp / Cities-Skylines-Traffic-Manager-President-Edition

Cities: Skylines Traffic Manager: Traffic President Edition
http://steamcommunity.com/sharedfiles/filedetails/?id=583429740
MIT License
147 stars 51 forks source link

Loading error #216

Closed Sandroo84 closed 5 years ago

Sandroo84 commented 6 years ago

Game: 1.10.1-f3 Traffic Manager 1.10.11 Error message:

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)\CorePack\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.TrafficManagerMod.OnEnabled () [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception


A Mod caused an error [System.Exception]

Details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for TrafficManager.State.GlobalConfig ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\CorePack\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.Warning (System.String s) [0x00000] in :0 at TrafficManager.State.GlobalConfig.Load (System.DateTime

Sandroo84 commented 6 years ago

Can somebody help me?

AllegedlyLuca commented 6 years ago

Make sure the game can write to the log file. The error you're getting is saying that it's trying to write to a log file, but it doesn't have permission.

If the log file exists, make sure your user has read and write privileges to both the log file and the directory it's contained in.

Doylecan commented 5 years ago

@Sandroo84 did you resolve this issue? I have the same issue and would like help with it.

VictorPhilipp commented 5 years ago

Check your file permissions. TMPE needs to be able to write to that file. If in doubt, run the game as administrator.