IIS Root Path vs Path of virtual directory
<p>I am using code that will get the root path</p>

<pre><code>return HttpContext.Current.Server.MapPath(@"\Schedules\");
</code></pre>

<p>This works great when my site is installed as a fully fledged web app. but when its installed as a virtual directory it breaks, because it is looking for files in root folder, and not in \virtualdirectorypath folder.  </p>

<p>Is there a way I can change the code to look for files from the virtual directory root, but also so it won't break if the app is installed as a fully fledged website?</p>
