There is an error occur when editing datas in xml in Live site.The error is like as follows.Please help me to solve this problem
Source Error:
|
|
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Oct 6, 2010, 10:39 PM EDT
xDoc.Save (Server.MapPath("App_Data//XmlFolder//Events.xml"));
in the same way i get success
this is my code.
doc.Save(Server.MapPath("XmlDataFiles//SmtpSettings.xml"));
Suthish NairRank #92 · 22.8K reputationPosted Oct 7, 2010, 2:58 AM EDT
string strDataDirectory = AppDomain.CurrentDomain.GetData("DataDirectory").ToString();
string appdatafolder = Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, "App_Data");
Server.MapPath("~/App_Data/filename/1.xml");
HttpContext.Current.Server.MapPath("~/App_Data/filename/1.xml");
HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_Data/folder/")