I have a web project like:
namespace Web { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, Event
If you use AppDomain.CurrentDomain.SetupInformation.PrivateBinPath instead of BaseDirectory, then you should get the correct path.
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath
BaseDirectory