Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Directory.Exists Returns True In Dev - False In Production

$
0
0

I have this code in an ASP.NET MVC page:

bool bExists = Directory.Exists(sFolderPath);

It returns true from my development machine and false from the production machine using the same sFolderPath values.  My first thought was that the production machine doesn't have rights to the specific folder, but I took the sFolderPath value on the production machine and I am able to browse to the folder in Windows Explorer.  My network admin tells me that the folder has read permissions set for Everyone.  Why can't the production machine using IIS see the directory when browsing from a page on our Intranet website?


MCSD .NET developer in Dallas, Texas



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>