File not found on local share mapped as drive
The long story is in this thread: Head it for details, code and so fourth.http://social.msdn.microsoft.com/Forums/en-US/clr/thread/176887b5-c0a6-42e9-99b6-678b354fde9c/The botton line is that i have a WinForms app that reads a xml file.The xml file i stored in a local share which is mapped as a E:-drive. (Simulation USB dongle)Whwn ever i try to DataSet.ReadXml(path) it gives a DirectoryNotFoundException with the messageCould not find a part of the path 'E:\Afaria Files\FaellesData\employees.xml'. The following users has full rights to both the share and the mapped drive:Administrators (including myself)Network ServiceUsersEveryoneSince it works fine if i execute the compiled .exe in Win XP Compability Mode, i assume this some Vista security "feature" messing thinges up. - Or maybe a rights management issue. WHat user does a WinForm app run as? Note: If i change the path to the real filepath (of the sharedfolder - not the UNC path, though) then it works. The the issue is either in the local share OR the Mapping it to a drive.Any ideas of what could cause this?Software engineer
February 4th, 2009 3:53pm

Hi esbenr, I suggest you first try the steps below to disable UAC and see the result: 1. Click Start go to Control Panel. 2. Double click on User Accounts. 3. Click "Turn User Account Control on or off". 4. Uncheck the checkbox and press OK. 5. Restart the computer and see the result. Hope this helps!Sean Zhu - MSFT
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2009 11:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics