Jump to content

WIN7 ACCESS DENIED on config xml file ->kacars crashes


mischka

Recommended Posts

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.

post-3349-0-56741800-1359537680_thumb.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...