Skip to content

Commit

Permalink
[asp.net] Fixed a thinko in one of the previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
grendello committed Apr 14, 2011
1 parent b313b63 commit be8a6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public sealed class ApplicationHost {

internal static string FindWebConfig (string basedir)
{
if (String.IsNullOrEmpty (basedir) || File.Exists (basedir))
if (String.IsNullOrEmpty (basedir) || !Directory.Exists (basedir))
return null;

string[] files = Directory.GetFileSystemEntries (basedir, "?eb.?onfig");
if (files == null || files.Length == 0)
return null;
Expand Down

0 comments on commit be8a6af

Please sign in to comment.