This project is read-only.

Access Denied - Runtime error


This is the an exeption when the program isn't running as administrator. When it trys to access something with needs admin rights, it crashes.
In this case, the log file in the installed folder.

This can be avoid with a simple try catch statement, or to resolve the hole issue, add the try satement when using ,as an ie, filestream, and also replace on the manifest file before build "asInvoker" to "highestAvailable".

System.UnauthorizedAccessException: Acesso negado ao caminho 'X:\Program Files (x86)\NASM Develop IDE\NasmDevelopIDE.log'.
em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
em 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)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
em System.IO.FileStream..ctor(String path, FileMode mode)
em NASM_Develop_IDE.ExceptionPrinter.Print(Exception e)
em NASM_Develop_IDE.NewProjectDialog.okay_Click(Object sender, EventArgs e)
em System.Windows.Forms.Control.OnClick(EventArgs e)
em System.Windows.Forms.Button.OnClick(EventArgs e)
em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
em System.Windows.Forms.Control.WndProc(Message& m)
em System.Windows.Forms.ButtonBase.WndProc(Message& m)
em System.Windows.Forms.Button.WndProc(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Versão da assemblagem: -> this is the assembler version( but its in portuguese srry)
Versão Win32: -> this is win32 version as you can see.