Foxhound 3.0 FAQ
Foxhound 3.0 FAQ Home      Foxhound Home      RisingRoad           Breck.Carter@gmail.com     


Message: Access is denied.

Explanation: If "Access is denied" appears during a Foxhound installation or upgrade on Windows 7, you may need to start over and switch to using the hidden "Administrator" account:

  1. Run the Foxhound "unsetup" process...
       start - All Programs - Foxhound3 - Tools - Unsetup Foxhound   
  2. Open a "command prompt" window in "Administrator" mode...

       start - All Programs - Accessories - right mouse Command prompt - Run as Administrator   
  3. Make the magic hidden Administrator account visible in Windows 7 by typing this command and pressing Enter...

       net user administrator /active:yes   
  4. Log off your normal account, and login as Administrator.

  5. Run the Foxhound installation again.

  6. You probably should set a password for the Administrator account, or hide it again...

       net user administrator /active:no   
  7. If you started the Foxhound database while logged in as Administrator, shut it down.

  8. While still logged on Administrator, grant "Full Control" on the C:\ProgramData\RisingRoad folder to all "Users"...

       Windows Explorer 
         - click right mouse Properties on C:\ProgramData\RisingRoad
         - click Security
         - click Edit...
         - select "Users (..."
         - check Full Control - Allow
         - click Apply
         - click OK

The "Access is denied" message may also mean the Foxhound engine is already running as a service and it cannot be stopped by the post setup process. As a result, the Foxhound upgrade will not work properly:

  • Try stopping the service and rerunning the upgrade, including the initial "unsetup" step: How do I install a new version of Foxhound?
  • Here is an example of this and other related error messages produced by the post setup process when the Foxhound engine is running as a service:

    ...
    *** Starting the existing Foxhound database...
    19/07/2010 15:20:03.26 Foxhound 1.3736 *** ERRORLEVEL = 1
    ***  ...no, the existing Foxhound database did NOT start.
    *** ERRORLEVEL = 1
    07/19 15:20:02. Cannot access "C:\Documents and Settings\All Users\Application D
    ata\RisingRoad\Foxhound3\foxhound3.db": another process may be using the file
    ...
    *** Moving the old Foxhound database files...
    A subdirectory or file backup already exists.
    A subdirectory or file previous_build already exists.
    The process cannot access the file because it is being used by another process.
    ******************************************************************
    *** ERROR ********************************************************
    *** The $post_setup.bat file could not MOVE the old
    *** foxhound3.db file to the "previous_build" subfolder.
    *** Contact Breck.Carter@gmail.com
    ******************************************************************
    Press any key to continue processing...
    Press any key to continue . . .
    The process cannot access the file because it is being used by another process.
    ******************************************************************
    *** ERROR ********************************************************
    *** The $post_setup.bat file could not MOVE the old
    *** foxhound3.log file to the "previous_build" subfolder.
    *** Contact Breck.Carter@gmail.com
    ******************************************************************
    Press any key to continue processing...
    Press any key to continue . . .
    *** Moving the new Foxhound database files...
    Access is denied.
    ******************************************************************
    *** ERROR ********************************************************
    *** The $post_setup.bat file could not MOVE the new
    *** foxhound3.db file to the FOXHOUND3 folder.
    *** Contact Breck.Carter@gmail.com
    ******************************************************************
    Press any key to continue processing...
    Press any key to continue . . .
    Access is denied.
    ******************************************************************
    *** ERROR ********************************************************
    *** The $post_setup.bat file could not MOVE the new
    *** foxhound3.log file to the FOXHOUND3 folder.
    *** Contact Breck.Carter@gmail.com
    ******************************************************************
    Press any key to continue processing...
    Press any key to continue . . .
    *** Deleting the temporary setup files...
    *** Wrapping up...
    ******************************************************************
    *** ERROR ********************************************************
    dbspawn old_foxhound3 ERRORLEVEL = 1
    ...
    

If the shortcut Foxhound3 - Tools - Stop Foxhound Engine doesn't finish

   C:\ProgramData\RisingRoad\Foxhound3>ECHO OFF
   Stop Foxhound Engine
   SQL Anywhere Stop Server Utility Version 16.0.0.1324

and both Task Manager and the taskkill command display "Access is denied." when you try to stop the Foxhound dbsrv16.exe process

   C:\Users\Breck>taskkill /pid 8140
   ERROR: The process with PID 8140 could not be terminated.
   Reason: Access is denied.

then check to see if there is a dbclient.exe process still running that was previously being used by Foxhound to connect to a SQL Anywhere 5.5 database. If so, shut down that dbclient.exe process and the Foxhound engine should stop.

See also...
How do I install a new version of Foxhound?


This page was last updated on December 2, 2011.      Foxhound 3.0 FAQ Home      Foxhound Home      RisingRoad      Breck.Carter@gmail.com