Posted on: 10/1/2013 12:13:31 PM | Views : 656

Hello everyone,

I've just started my adventure with ASP.NET so I'm not very knowledgeable. I got a project, but I'm stuck at one point. First of all I had to write a function which checks, if a folder and two files exist and return true. Here's the code:
public bool IsApplicationDirectory( string directory ) { if ( Directory.Exists(Server.MapPath("~/bin")) ) { if ( File.Exists(Server.MapPath("~/Portal.Server.dll")) && File.Exists(Server.MapPath("~/Host.Server.dll")) ) { return true; } else { return false; } } else { return false; } } The part in which I'm stuck is that I have to write another function. It should look like this: 
List<string> GetApplicationDirectories() and this function should list the names of all folders, but only those which comply with the conditions from the ...

Go to the complete details ...