Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if file exists
Message
De
02/08/2007 14:43:43
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
02/08/2007 14:36:12
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01245587
Message ID:
01245593
Vues:
17
Could it be something under the Directory Security tab in the website properties? Are the apps running as different users?

>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)
>
>
>Thanks,
>
>Jerry
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform