22.07.2012, 21:12
Hallo, da bin ich mal wieder und mit dem alten Problem .NET Fehler und JIT-Debugging. Aktuelle Anno Version und aktueller Trainer 1.05.
Das Problem tritt auch als Administrator auf:
************** Ausnahmetext **************
System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Windows\system32\bassmod.dll" wurde verweigert.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
bei System.IO.File.WriteAllBytes(String path, Byte[] bytes)
bei Trainer.Form1.Form1_Load()
bei Trainer.Form1._Lambda$__1(Object a0, EventArgs a1)
bei System.EventHandler.Invoke(Object sender, EventArgs e)
bei System.Windows.Forms.Form.OnLoad(EventArgs e)
bei System.Windows.Forms.Form.OnCreateControl()
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl()
bei System.Windows.Forms.Control.WmShowWindow(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
bei System.Windows.Forms.Form.WmShowWindow(Message& m)
bei System.Windows.Forms.Form.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Wenn ich die Fehlermeldung richtig interpretiere, wird beim Start des Trainers die bassmod.dll entpackt und in den System32 Ordner entpackt. Warum eigentlich dorthin? Kann doch auch ein allgemeines Verzeichnis sein,also das Verzeichnis in dem der Trainer steht, ich muss nur den Verweis darauf korrekt setzen. Der IO Fehler resultiert daraus. Die UAC zu deaktivieren ist aus Sicherheitsgründen als Internetworker für mich nicht wirklich sinnvoll.
Das Problem tritt auch als Administrator auf:
************** Ausnahmetext **************
System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Windows\system32\bassmod.dll" wurde verweigert.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
bei System.IO.File.WriteAllBytes(String path, Byte[] bytes)
bei Trainer.Form1.Form1_Load()
bei Trainer.Form1._Lambda$__1(Object a0, EventArgs a1)
bei System.EventHandler.Invoke(Object sender, EventArgs e)
bei System.Windows.Forms.Form.OnLoad(EventArgs e)
bei System.Windows.Forms.Form.OnCreateControl()
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl()
bei System.Windows.Forms.Control.WmShowWindow(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
bei System.Windows.Forms.Form.WmShowWindow(Message& m)
bei System.Windows.Forms.Form.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)