Closing application error

Posts: 2
Joined: 2 Nov 2016 - 15:32
Closing application error

Hi,

Each time the application is closed The following error occurs :

Runtime error: 

--------------------------------------------------
Error: System.UnauthorizedAccessException
Message: Access to the path 'C:\ProgramData\NSISDialogDesigner\NSISDialogDesigner.layout.xml' is denied.
Stack trace: 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at WeifenLuo.WinFormsUI.Docking.DockPanel.Persistor.SaveAsXml(DockPanel dockPanel, String fileName, Encoding encoding)
   at WeifenLuo.WinFormsUI.Docking.DockPanel.SaveAsXml(String fileName)
   at #=qP1MQLm3xoy43z41z$a1MI4dhzajIccE42O8D3BRUdFw=.#=qtSEw3NcS1LOnHoDt3TQ7awQMYOA2J0fCsQsj0drp5qc=()

 

And when I close the error message window the following message is displayed

Runtime error: 

--------------------------------------------------
Error: System.UnauthorizedAccessException
Message: Access to the path 'C:\ProgramData\NSISDialogDesigner\NSISDialogDesigner.config.xml' is denied.
Stack trace: 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
   at NSISDialogDesigner.Settings.SaveToXML(String filename)
   at #=qP1MQLm3xoy43z41z$a1MI4dhzajIccE42O8D3BRUdFw=.#=qs_bACLo1bXzf$59AY_noGzapua12sv8vD0GQPWsCqek=()

 

Windows 7 / 32 bits

NSISDialogDesigner v 1.4.2

 

 

Posts: 1125
Joined: 25 Mar 2012 - 01:19
Re: Closing application error

That file is where NSISDialogDesigner stores its IDE layout info (panel layout, ...).

The folder C:\ProgramData\NSISDialogDesigner is created by the setup and set writable to all users.
Maybe something gone wrong during setup, or something else prevented setting its permissions.

Please check it exists and its permissions, otherwise create it and set it as writable by all users...

Posts: 2
Joined: 2 Nov 2016 - 15:32
Re: Closing application error

The folder and files exist and have read/write access.

I have to destroy the directory and re-create it to get the application work correctly. 

Many thanks for your help and for your great job.

 

Claire

 

warning

Warning, JavaScript is disabled!

JavaScript is not available, maybe because you disabled it globally into your browser settings or you are using an addon like NoScript.

We do not have any dangerous JavaScript running here.
Please enable JavaScript; if you're using NoScript this image will help you adding CoolSoft to your whitelist.

Thanks for your comprehension and enjoy CoolSoft.