You can easily retrieve the path to the running ASP.NET application, using Request.PhysicalApplicationPath:
string AppPath = Request.PhysicalApplicationPath;
If the web application is located in C:\Inetpub\wwwroot\WebApplication1, the string AppPath will contain C:\Inetpub\wwwroot\WebApplication1