Mapped drives shows status as disconnected, but are accesible

I have a weird issue trying to run an App that uses dbase files, even though the drives are mapped correctly and I can access them from my computer and drive letter, when the application loads It would give me an error : "Not a valid path X:\AppFolder\", I've contacted the software vendor and they teach how to re-assign the drive to tthe APP, but every time the computer shut down and back on, the error starts over again. This only happens with Windows 7, the other computers are Vista and XP and have no issues. App files reside on Windows 2008 server, other file-client apps work fine. The only thing I've noticed is that the drives icons that are shown in the browsing window show as disconnected when they are not, apparently the App checks for drive status instead of trying to access the files? I have enclosed a Print screen for reference.Browsing Window shows Drives as offline/Disconected Why??
One-SolutionAsked:
Who is Participating?
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.

JeffG2583Commented:
How many computers is this happening on? Are they on a domain? Are they running any kind of script or batch file to map these drives at logon?
0
alicainCommented:
Are these folders Made available offline?  It looks like there are and that they are being worked on offline.  You should be able to see the offline stats in the status bar in Windows Explorer or the Sync Canter.
If that's the case, the next question would be why does it appear to be offline?  There could be a whole number of reasons for that but to start narrowing that down, check the network connectivity between the client and the server.  Also - do you have the "Work onlne" icon Explorer's menu?

Regards,
Alastair.
0
Rob MinersCommented:
See if this helps

Mapped Drive Connection to Network Share May Be Lost red X

http://support.microsoft.com/kb/297684

If you map a drive to a network share, the mapped drive may be disconnected after a regular interval of inactivity, and Windows Explorer may display a red "X" on the icon of the mapped drive. However, if you try to access or browse the mapped drive, it reconnects quickly.

To turn off the autodisconnect feature, open an an Elevated command prompt, type the following line, and then press ENTER:
 
net config server /autodisconnect:-1

-=eof=-
0
IT Degree with Certifications Included

Aspire to become a network administrator, network security analyst, or computer and information systems manager? Make the most of your experience as an IT professional by earning your B.S. in Network Operations and Security.

KwoofCommented:
"Not a valid path X:\AppFolder\",  but your picture shows only L, P, S, and Y as being mapped

When you mapped the drive, did you check "Reconnect at sign-in"?

If your app really is checking status, instead of trying to reach the file, then (as the last expert suggested) you do need:

net config server /autodisconnect:-1
0
One-SolutionAuthor Commented:
First tried this:
To turn off the autodisconnect feature, open an an Elevated command prompt, type the following line, and then press ENTER:
 
net config server /autodisconnect:-1
Doesn't Work.

Also tried this:
Alicain-Are these folders Made available offline?  It looks like there are and that they are being worked on offline.  You should be able to see the offline stats in the status bar in Windows Explorer or the Sync Canter.
But still got this:
Not A valid Data Path error
In response to Kwoof: I've only used:
"Not a valid path X:\AppFolder\"
as an example actual drive letters are S: and  Y:
0
KwoofCommented:
The app developer needs to fix it...BUT a work-around could be instead of just running the app directly...include it in a batch file that interacts with each of those drives first...or opens windows explorer to those drives, then runs the app?
0
KwoofCommented:
Just in case...in Win 7, an easy way to open explorer from a command prompt is to first make a shortcut to that drive or folder on your local drive (e.g. C:\test).  rename to an easy to use name (OpenFolder1).  Then in your batch file use the command "c:\test\OpenFolder1.lnk"

That should trigger windows to recognize the drive as connected.
0
Ben Personick (Previously QCubed)Lead Network EngineerCommented:
First tried this:
To turn off the autodisconnect feature, open an an Elevated command prompt, type the following line, and then press ENTER:
 
net config server /autodisconnect:-1

Doesn't Work.

Just to be sure Lets Verify a couple things:

1. The Above command must be run on the Server which is Sharing the Drive.  (NOT on the Desktop which is mapping a drive.)

2.  The Client also has a Disconnect Feature, which only allows you to set time-out lengths of time, whichever is Shorter (The Server's timeout or the client's time out) is the one causing the red Xs.

2A.  On the Client you have to actually create or change the registry setting as there is no command to accomplish that for you.

  (Because of this I'm presenting both Server and Client Side settings as registry changes, since this also gives you a way to check what the current settings are.)


To Check and Fix the SERVER (The machine where the Share Exists that the Drive will be mapped TO) with these commands:
REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" /v "TEST"
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" /v "TEST" /t "REG_DWORD" /d "4294967295" /f

Open in new window


To Check and Fix the CLIENT (The machine FROM Which you MAP the drive.) with these commands:
REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters" /v "keepConn"
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters" /v "keepConn" /t "REG_DWORD" /d "65535" /f

Open in new window


Below are the commands written as little scripts to check, then set then verify the key is correct.

( I kept them Generic enough that you can use them for other registry changes in the future if you like.)
:: Script Name: FixServer.bat
@(
	SETLOCAL
	ECHO OFF
	SET "KeyName=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters"
	SET "ValueName=AutoDisconnect"
	SET "Value=4294967295"
)

ECHO.
ECHO.Original value of SERVER Disconnect in Seconds (Not found = 10 minutes):
REG QUERY "%KeyName%" /v "%ValueName%"

ECHO.
ECHO.Updating Registry %ValueName% Value to Maximum (%Value%):
REG ADD "%KeyName%" /v "%ValueName%" /t "REG_DWORD" /d "%Value%" /f

ECHO.
ECHO.New value of SERVER Disconnect in Seconds (Not found = 10 minutes):
REG QUERY "%KeyName%" /v "%ValueName%"

(
	ENDLOCAL
	PAUSE
)

Open in new window

:: Script Name: FixClient.bat
@(
	SETLOCAL
	ECHO OFF
	SET "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters"
	SET "ValueName=%ValueName%"
	SET "Value=65535"
)

ECHO.
ECHO.Original value of CLIENT Disconnect in Seconds (Not found = 10 minutes):
REG QUERY "%KeyName%" /v "%ValueName%"

ECHO.
ECHO.Updating Registry %ValueName% Value to Maximum (%Value%):
REG ADD "%KeyName%" /v "%ValueName%" /t "REG_DWORD" /d "%Value%" /f

ECHO.
ECHO.New value of CLIENT Disconnect in Seconds (Not found = 10 minutes):
REG QUERY "%KeyName%" /v "%ValueName%"

(
	ENDLOCAL
	PAUSE
)

Open in new window


See if that doesn't fix things.
0

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
One-SolutionAuthor Commented:
I followed Kwoof's suggestion and called the developer back, this time I was able to contact someone that could help. According to them In Windows 8 and Windows Sp1 there's a registry entry removed that their App needs. They instructed me to add this registry entry and worked like a Charmed:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
EnableLinkedConnections = 1 (DWord)"


http://modmaven.wordpress.com/2009/05/27/how-to-make-windows-7-map-your-network-drives-properly/

Thanks to QCubed but I didn't get follow all allong the instructions but seem to tackle the problem from a different perspective.
0
Rob MinersCommented:
Thanks for the feedback, I'll keep that information for future reference. :)
0
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
Windows OS

From novice to tech pro — start learning today.