System.UnauthorizedAccessException: Accesso al percorso 'C:\Program Files\TS2017 Raildriver and Joystick Interface\Settings\changes.txt' negato. in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) in 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, Boolean useLongPath, Boolean checkHost) in System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) in System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) in System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) in System.IO.StreamWriter..ctor(String path) in TS2017_Raildriver_And_Joystick_Interface.frmUpdateInputMapper.saveDataToXML(String mode) in System.Windows.Forms.Control.OnClick(EventArgs e) in System.Windows.Forms.Button.OnClick(EventArgs e) in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) in System.Windows.Forms.Control.WndProc(Message& m) in System.Windows.Forms.ButtonBase.WndProc(Message& m) in System.Windows.Forms.Button.WndProc(Message& m) in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Assembly caricati ************** mscorlib Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- TS2019 Interface (x64) Versione assembly: 3.0.1.0 Versione Win32: 3.0.1 Base di codice: file:///C:/Program%20Files/TS2017%20Raildriver%20and%20Joystick%20Interface/TS2019%20Interface%20(x64).exe ---------------------------------------- System Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Xml.Linq Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll ---------------------------------------- System.Core Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- SharpDX.DirectInput Versione assembly: 4.1.0.0 Versione Win32: 4.1.0 Base di codice: file:///C:/Program%20Files/TS2017%20Raildriver%20and%20Joystick%20Interface/SharpDX.DirectInput.DLL ---------------------------------------- SharpDX Versione assembly: 4.1.0.0 Versione Win32: 4.1.0 Base di codice: file:///C:/Program%20Files/TS2017%20Raildriver%20and%20Joystick%20Interface/SharpDX.DLL ---------------------------------------- System.Configuration Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Windows.Forms.resources Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll ---------------------------------------- PIEHid64Net Versione assembly: 2.2.5.23674 Versione Win32: 2.1 Base di codice: file:///C:/Program%20Files/TS2017%20Raildriver%20and%20Joystick%20Interface/PIEHid64Net.DLL ---------------------------------------- System.Data Versione assembly: 4.0.0.0 Versione Win32: 4.7.3190.0 built by: NET472REL1LAST_C Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Data.DataSetExtensions Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll ---------------------------------------- System.Numerics Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll ---------------------------------------- mscorlib.resources Versione assembly: 4.0.0.0 Versione Win32: 4.7.3062.0 built by: NET472REL1 Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll ---------------------------------------- ************** Debug JIT ************** Per abilitare il debug JIT, è necessario impostare il valore jitDebugging nella sezione system.windows.forms del file di configurazione dell'applicazione o del computer (machine.config). L'applicazione inoltre deve essere compilata con il debug abilitato. Ad esempio: