community.borland.com

Article #25734: Autostart services fail with "Access Denied" after InterClient 1.5 Install

Problem:
The information in this document applies to:
** Microsoft NT4.0
** InterClient 1.5
** InterBase 5.5

I installed your latest InterClient onto my NT 4.0 system and all hell has broken loose!  Now,
none of the auto startup services relating to my development web server, or the installed
interbase server will start.  The error recieved is "Access Denied" which is the error I found
in your "help" section of your docs for InterClient.  Not only does the InterServer have this
problem, it also effects other services from starting also with the same exact error!  And this
is not the end of it either, even after uninstalling the web server and the interbase stuff and
then reinstalling everything, the services are still unavailable because of this same error!  

Solution:
I found the problem, and, yes it was not related to your product.....sorry (actually SORRY,
SORRY, SORRY!!!!) for the implication but it seemed logical since your product was the last
thing I installed since the last reboot.  I found the answer in Microsoft's knowledgebase.  We
had been trying out a DB product called DBMaker for our Java Servlet development.  From
servlets, it could not resolve a DB connection to the example DB located in the "Program Files"
directory.  It happened to be looking for it in a "Programxxxxxx.sdb" area, so being the
bright person that I try to be some of the time, I created a "Program" directory and placed the
example DB in there just to get the servlet to run.  Well, NT cannot resolve "Program" from
"Program Files" when it tries to load services that are located in the "Program Files"
directory and referenced as such in the registry.
*******************************************************************************************************
Access Denied Starting Program

Last reviewed: October 19, 1998
Article ID: Q179147 



      The information in this article applies to: 

           Microsoft Windows NT Workstation version 4.0 
           Microsoft Windows NT Server version 4.0 
           Microsoft Windows NT Server Enterprise Edition version 4.0 

      SYMPTOMS

When you attempt to start a program from the desktop, the Start menu, a shortcut, or from
a file association, you may receive one of the following error messages: 

           Access to the specified device, path or file is denied. 
           Access to the driver, specified path, or file is denied. 

NOTE: This problem only affects programs whose executable files are located in folders
within the Program Files folder. 

      CAUSE

      These error messages can occur if either of the following conditions exists: 

** You are trying to run a program that does not write quoted path strings containing
long file names into the registry. The execution of a process is handled by the Win32 
CreateProcess() API. CreateProcess() is unable to distinguish between spaces in 
long file names, and spaces delimiting arguments to the function. If a quoted string 
is passed to the API, CreateProcess() is able to make this distinction and launches 
the program as expected. 

** You have a Program folder on the same drive as the Program Files folder. 

      RESOLUTION

      To resolve this problem, use the appropriate method below: 

** Program Does Not Quote Long File Name Paths in the Registry

To resolve this problem, obtain the latest service pack for Windows NT version 4.0. For
more information, please see the following article in  the Microsoft Knowledge Base. 

         ARTICLE-ID: Q152734
         TITLE     : How to Obtain the Latest Windows NT 4.0 Service Pack


** A Program Folder Exists on the Same Drive as the Program Files Folder

Rename the Program folder to a name other than Program. To do so, right- click the
Program folder in Windows NT Explorer, click Rename, type a new name for the 
folder, and then press ENTER. 

      STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. This problem was
first corrected in Windows NT 4.0 Service Pack 4. 

      MORE INFORMATION

This behavior has been known to occur with the Inbox and Internet Explorer icon, and with
shortcuts pointing to Microsoft Access databases. 

For information about additional symptoms that may occur, please see the following
articles in the Microsoft Knowledge Base: 

         ARTICLE-ID: Q165763
         TITLE     : Windows NT Does Not Recognize a Space in a Registry Value

         ARTICLE-ID: Q149533
         TITLE     : OLE Problems When Running 16-bit Applications on Windows NT

         ARTICLE-ID: Q170669
         TITLE     : Creating C:Program Folder Causes Add/Remove Program to
                     Fail

         ARTICLE-ID: Q175653
         TITLE     : Err Msg: At Least One Service or Driver Failed...

Last Modified: 23-OCT-00