Error Reading File... (Windows 10 / Windows Server 2012 R2)

I have a Domain (Windows 2012 R2) with 10 Stations.

I have 1 station with some problems when accessing an application (Visual Foxpro 9).
when the application is active but idle for few minutes we get an error "Error reading file....".
We shutdown the application and restart it, it works fine for another few minutes... and again ,if the PC is idle for few minutes, it gives the same error.

I tried changing the NIC, removing the Power management from everywhere on the PC (NIC, HDD, etc... ) it did not change anything...

The weird thing is that If I have an excel file open from the same share folder, it doesn't give any error..

Any help ?
Pierre AmmounIT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Does this happen when the application does not stay idle?
Do you use drive letters or share names?

You may try following (on the workstation):

net config server /autodisconnect:-1

net use x: \\<servername>\<sharename> /persistent:yes

Also please read hints in this KB article:
Can you try disabling SMB2 for testing purposes? It's known to cause VFP issues.  If that is the problem then try creating firewall application exception rule but let's try to narrow it down first.
Pierre AmmounIT ConsultantAuthor Commented:
I tried to disable Smb2 as suggested ...
same problem.
as for share persistent this is already the case...
same problem...
what is weird is that I have other users on the system (same app) with no issues... Though not Windows 10 !
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

So you are using drive letter with persistent share definition on Windows 10.  What about the autodisconnect?
Disconnecting should appear in Windows logs. Did you check them?

Does the drive letter disappear from Windows Explorer when this error appears?
Does the problem occur when the VFP 9 app is idle but Excel has open some file on the same share?

Are you able to use UNC instead of drive letter? Does it behave the same way?

If this behavior is observed on Windows 10 only and no hint works for you then you have two options:

Create the "Keep Alive" timer in your app. This timer should fire every 30 or 60 secs and do the following:

USE some file on the share
REPLACE one row with something
Close the file.

It should help based on what you were saying till now.
Pierre AmmounIT ConsultantAuthor Commented:
Dear LVL44,

I tried to keep a command prompt open with a "ping -t" to the server... and it did not help !

What is "Keep alive" timer ?
"I tried to disable Smb2 as suggested ..."

Sorry, just realized it's Windows 10.  You said the others are not having issues running the same app and they are not on W10.  W10 by default blocks lower SMB protocol.  After disabling SMB2 did you enable SMB1?

Will it be possible to test if this is the case to narrow down the problem?
The ping cannot help to keep the shared folder connected. It just ensures the server is running but nothing else.

The "Keep Alive" timer is a VFP 9 code which implements the timer object. This object then simulates data access even when the application is inactive.

If you are not the VFP 9 application code owner then you may write another (very small) VFP 9 app which will implement this timer.

BTW, LVL44 is not my name just rank assigned by EE.  The name is introduced by "by:"  in message heading. :-)
Did you check Registry entry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters Value: KeepConn
as proposed in the link from my first post?

What is the value?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.