Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if file exists
Message
From
02/08/2007 14:41:18
 
 
To
02/08/2007 14:36:12
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01245587
Message ID:
01245590
Views:
23
This message has been marked as the solution to the initial question of the thread.
>Using VS2005 on XP PRO SP2.
>
>I have two ASP.Net web applications on my dev pc. My web app 1 can NOT check for the existence of a file on our network drive. But my web app 2 can check for the existence of a file on the same network drive.
>
>What would cause this and how do I correct this?
>
>Here is the code I use to check for a file. This file does exist but web app 1 returns false, web app 2 returns true.
>
>if (System.IO.File.Exists("F:\data\somefile.txt") == true)
>
Can you try using UNC?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform