System.IO.File.WriteAllText(HttpContext.Current.Server.MapPath("~") + @"ApiNlogEX.txt", ex.ToString());

 

学习QQ群:364976091