<李> < p > <代码> System.IO.Path.GetDirectoryName (
System.Reflection.Assembly.GetExecutingAssembly () .Location) < /代码> < / p >
会给你一些东西,比如:"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files\\legal-services\\e84f415e\\96c98009\\assembly\\dl3\\42aaba80\\bcf9fd83_4b63d101",这是你正在运行的页面所在的位置。