ASP .net current physical location

后端 未结 2 1303

Hi I am developing an ASP.net web application. I need to find the current location (physical) of the web site (or the bin directory containing the assemblies).

I have t

2条回答
  •  眼角桃花
    2021-02-19 15:55

    You need System.Web.HttpRuntime.BinDirectory (physical path to the bin folder) and System.Web.HttpRuntime.AppDomainAppPath (physical path to the top-level ASP.NET application folder).

提交回复
热议问题