Consultor Eletrônico



Kbase 21290: Error 98 - Output To Mapped Drive on Windows Via AppServer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/3/2008
SUMMARY:

You might see error 98 on Windows NT/2000 when trying to write to a mapped drive, from code running on an AppServer:

** Unable to open file: <file-name>. Errno=2. (98)

EXPLANATION:

Error 98 is sometimes seen when running code on an AppServer that needs to output/write to a mapped drive on another Windows NT/2000 machine.

One reason for this error is that the Admin Service that started the AppServer does not have access to the mapped drive. The most important factor here is the person who starts the AdminServer, rather than the user who actually maps the drive. Therefore, the problem lies between the AppServer machine and the mapped drive.

By default, the Admin Service for Progress is started as the same user that most other Windows Services are, that is the 'Local System' account. This account has full control of the local system resources but cannot access resources on other systems on the network. A Windows NT service cannot use mapped network drives in the same manner that a user can.

Therefore, in order for the AppServer to write to another Win NT/2000 mapped drive, the account that starts the AdminServer must be other than the Local System account.

SOLUTION:

Follow these steps to correct the problem:

1) Make sure that the Admin Service is starting as a user other than
Local System.

2) This same user who starts the Admin Service has to have an account
on the mapped drive (physical location of the drive you are trying
to write to). Of course, this user must have appropriate
permissions.


References to Written Documentation:

Progress Knowledge Base Solution 18236, "Running ProControl As a Windows NT Service Or As a User ID"