作了一个Web 应用程序,需要修改Web.config文件,在Visual Studio下运行很好,
发布后就运行就出错“对路径“C:\WebApplication\Web.config”的访问被拒绝。” XmlDocument doc = new XmlDocument();
string strFileName = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Web.config";
doc.Load(strFileName);
doc.Save(strFileName);
发布后就运行就出错“对路径“C:\WebApplication\Web.config”的访问被拒绝。” XmlDocument doc = new XmlDocument();
string strFileName = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Web.config";
doc.Load(strFileName);
doc.Save(strFileName);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货