mischka Posted January 30, 2013 Report Posted January 30, 2013 Hello One of my pilots has a serious malfunction with his kacars. When he saves the profile he gets a big fat exception, see attachment and details below. What is says is that the access to european.xml (where the config info is stored) is denied. he runs it as admin though. He first had it installed in the default install path, I then advised him to put it in a sub directory in fsx somewhere but that didnt change anything. I'm not familiar enough with win7 to tell where its going wrong. The file seems ti exist. I wonder if it could be an issue with the space in the pathname? thanks in advance for providing any clarity! Informationen über das Aufrufen von JIT-Debuggen anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung. ************** Ausnahmetext ************** System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Program Files (x86)\FS-Products\kACARS_Free\profiles\european.xml" 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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) bei System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) bei #.#() bei #.#(Object #, EventArgs #) bei System.Windows.Forms.Control.onclick(EventArgs e) bei System.Windows.Forms.Button.onmouseup(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(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) ************** Geladene Assemblys ************** mscorlib Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400). CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll. ---------------------------------------- kACARS - Free Assembly-Version: 1.0.1.1. Win32-Version: 1.0.1.1. CodeBase: file:///C:/Program%20Files%20(x86)/FS-Products/kACARS_Free/kACARS%20-%20Free.exe. ---------------------------------------- System.Windows.Forms Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll. ---------------------------------------- System Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll. ---------------------------------------- System.Drawing Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll. ---------------------------------------- System.Xml Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll. ---------------------------------------- FSUIPCClient Assembly-Version: 1.3.2758.28. Win32-Version: 1.3.2758.28. CodeBase: file:///C:/Program%20Files%20(x86)/FS-Products/kACARS_Free/FSUIPCClient.DLL. ---------------------------------------- System.Configuration Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll. ---------------------------------------- mscorlib.resources Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400). CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll. ---------------------------------------- System.Windows.Forms.resources Assembly-Version: 2.0.0.0. Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400). CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll. ---------------------------------------- ************** JIT-Debuggen ************** Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der Konfigurationsdatei der Anwendung oder des Computers (machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden. Die Anwendung muss mit aktiviertem Debuggen kompiliert werden. Quote
HighFlyerPL185 Posted January 30, 2013 Report Posted January 30, 2013 Not an expert on kACARS, but I often found the errors were usually present on third-party scripted applications, often with support of .NET Framework. Reinstalling it, updating did not help at all, and the only reasonable solution was a system reinstall, which stopped all the errors from occuring. Quote
Guest lorathon Posted January 30, 2013 Report Posted January 30, 2013 Make sure that the exe file is set to "Run as Admin". Also ensure that a firewall is not stopping access to the file. Quote
mischka Posted January 30, 2013 Author Report Posted January 30, 2013 Hello He said he runs it as admin and also he checked the firewall/AV settings although I don't know how thorough he checked I think its weird though, because that xml file is a normal file on his local machine, and the issue occurs when he tries to save his profile file, so why would the firewall have anything to do with that? Also, why would the AV deny access to an ordinary file? Edit: he uses avira free for antivirus Quote
Guest lorathon Posted January 30, 2013 Report Posted January 30, 2013 The error you have shown is usually associated with the "exe" file not being set to "Run as Administrator". Quote
mischka Posted January 31, 2013 Author Report Posted January 31, 2013 You mean by right-clicking on the .exe, properties, compatibility and then checking "run this as an administrator" ? Sorry, but if your program doesn't run without this, you should change your code, not make every user change their settings! Most apps use some kind of files to store information and the whole point of not running your apps as administrator would be void if programs wouldn't be able to run without admin rights. Quote
Strider Posted February 9, 2013 Report Posted February 9, 2013 Tell the pilot to install it to the documents folder. That bypasses having to set it to run as an administrator. never install kacars to program files (x86) Quote
mischka Posted February 9, 2013 Author Report Posted February 9, 2013 Oh, I totally forgot about this but... we remedied the problem by disabling the "run as admin". Once run as admin was disabled all worked fine, contrary to what was said above. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.