Windows應用程序中用於Web應用程序的「HttpContext.Current.Server.MapPath」的替代選項。我應該在Windows應用程序中使用什麼來訪問文件。Windows應用程序中的HttpContext.Current.Server.MapPath替代
[編輯] 這是在窗口應用程序中的替代?
reader = XmlReader.Create(
@"D:\EnviroTrack\EnviroTracker.Web\TestDevice\Data.xml", settings);
請建議
[HttpContext.Current.Server null]的可能重複(http://stackoverflow.com/questions/6304532/httpcontext-current-server-null) – 2011-06-11 01:17:23