Topics

Display permission problem when connecting electric focusing, connection failed #c

cuimingyaochina@...
 

Dear developers, I found some problems when I connected the electric focusing

************** 异常文本 **************
System.UnauthorizedAccessException: 对路径“C:\Program Files\N.I.N.A. - Nighttime Imaging 'N' Astronomy\On_Cue_Focuser_Settings.xml”的访问被拒绝。
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 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)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
在 System.IO.StreamWriter..ctor(String path)
在 ASCOM.On_Cue_Focuser.SetupDialogForm.SaveDefaults()
在 ASCOM.On_Cue_Focuser.SetupDialogForm.CmdOkClick(Object sender, EventArgs e)
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************

mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9151 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

On_Cue_On_Focus

程序集版本: 1.5.6.0
Win32 版本: 1.5.6.0
基本代码: file:///C:/Program%20Files%20(x86)/Common%20Files/ASCOM/Focuser/On_Cue_On_Focus.DLL

ASCOM.DeviceInterfaces

程序集版本: 6.0.0.0
Win32 版本: 6.4.1.2695
基本代码: file:///C:/Windows/assembly/GAC_MSIL/ASCOM.DeviceInterfaces/6.0.0.0__565de7938946fba7/ASCOM.DeviceInterfaces.dll

System

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9147 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

mscorlib.resources

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9151 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

System.Windows.Forms

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

dgtzx_yb

程序集版本: 1.5.6.0
Win32 版本: 2.0.50727.9147 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

ASCOM.Utilities

程序集版本: 6.0.0.0
Win32 版本: 6.4.1.2695
基本代码: file:///C:/Windows/assembly/GAC_MSIL/ASCOM.Utilities/6.0.0.0__565de7938946fba7/ASCOM.Utilities.dll

System.Core

程序集版本: 3.5.0.0
Win32 版本: 3.5.30729.9135 built by: WinRelRS6
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

System.Windows.Forms.resources

程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

rbeard47@...
 

I'm not 100% sure, but it sounds like a permissions issues.  If you run the application "elevated", can you acces the file?  For example, if you right-click the application and "Run as Administrator", if it able to open the .xml file?  This is probably a bad translation, but in the right-click menu, the option might be "作为管理员窗口运行 "

Howard Dutton
 

Download the latest ASCOM focuser driver, it shouldn't suffer from these issues:

http://www.stellarjourney.com/index.php?r=site/software_focuser