"Unhandled exception has occurred in your application..." error

I want to use view navigation in my app, but I also want a Logout button. So I'm trying to create a view which uses an OnLoad script to redirect to my login page, effectively logging the user out.

I created my view and went into the Events tab of the View properties, then selected the OnLoad event from the dropdown, and typed this script code into the script text area:


Upon losing focus, the Events tab apparently tries to compile the script, but I get this error message:


"Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, th application will close immediately. Access to the path 'C:\Program Files (x86)\Verivo Software\Application Studio\be0f88e9-73ee-4aa8-9945-05188414e276.lua' is denied."




See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Verivo Software\Application Studio\be0f88e9-73ee-4aa8-9945-05188414e276.lua' is denied.
at PyxisMobile.BusinessObjects.EventScript.SetAndCompileScript(String script)
at PyxisMobile.AppStudioUserInterface.ViewBuilder.ViewEventsController.ScriptTextChanged(String text)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DevExpress.XtraEditors.BaseEdit.OnLeave(EventArgs e)
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()


Any ideas what is causing this?


Have more questions? Submit a request


  • 0
    John Lafauce

    Hi Jordan,

    The "Unhandled exception has occurred in your application..." error you are seeing is not a Verivo error and it indicates incorrectly set permissions. It could be on files / their folders / the program, etc. Here are steps to resolve this:

    1) Right click on the Application Studio folder (at the end of your directory path below) and select Properties:

    C:\Program Files (x86)\Verivo Software (or Pyxis Mobile)\Application Studio\

    2) Click the Security tab

    3) Click the Edit button

    4) Select all Groups or User Names and set their Full Control to 'Allow'

    5) Click Apply then OK

    6) Also, launch AppStudio as administrator (by right-clicking on the AppStudio.exe and choosing Run as Administrator).

    If that does not resolve your error, perhaps your network service account doesn't have full control permission to the installation directory. Then try these steps:

    1. From Windows Explorer, right-click the software installation folder and click Properties.
    2. From the Properties window, select Security tab and click Edit then Add...
    3. In the Object Name section, type the following: Network Service
    4. Select the Check Names button (NETWORK SERVICE should appear)
    5. Click OK
    7. Set Full control permissions to Allow
    8. Click Apply then OK

    Either of those sets of steps should resolve your error.

    Thank you,


  • 0
    Jordan Weber-Flink

    Thank you John! Your first suggestion resolved my error and scripting is now working.

  • 0
    John Lafauce

    Glad to hear and thanks for the update!

Please sign in to leave a comment.
Powered by Zendesk