Microsoft KB Archive/299603

= You receive an &quot;Error reading file&quot; error message in Windows 2000 Terminal Services =

Article ID: 299603

Article Last Modified on 1/24/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q299603



SYMPTOMS
When one user shuts down a Visual FoxPro application that runs on Windows 2000 under Terminal Services and uses networked data (either a mapped drive or a UNC path), the other users see the following error message:

Error reading file.

NOTE: This is error 1104.



CAUSE
This is caused by a problem with the Terminal Services network redirector. For performance reasons, the Windows 2000 redirector holds one file handle for each table that is open, and shares it between the sessions. When one session logs off, that handle is released, causing all other sessions to receive Error 1104 when they access the file handle.



RESOLUTION
To resolve this problem, try one of the following methods:  The most reliable resolution to this problem is to put the data on the local computer. For additional information on how to do this, click the article number below to view the article in the Microsoft Knowledge Base:

294816 Programs Run from Network Share on TS Close or Generate Errors

 There is a fix to the redirector that works in some situations. First, test the data locally. If that works, see the following Knowledge Base article for information on how to obtain the fix:

818528 Problems When More Than One User Accesses the Same File Through Terminal Services

 If the data files reside on an Windows NT 4.0 File Server, move the data to a Windows 2000 File Server.

Keywords: kbprb kbtermserv KB299603

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.