解决方案 »

  1.   

      void Application_Start(object sender, EventArgs e)
        {
            System.IO.File.Delete(Server.MapPath("~/XML/Language.xml"));
        }void Application_BeginRequest(Object sender, EventArgs e)  {
    dsRes.WriteXml(Server.MapPath("~/XML/Language.xml"));
        }Application_Start  只有在有改动的情况下,才会执行,有没有什么方法,是当多个人执行网页时,只有第一个人创建xml,其他直接读取,(iis服务器重启后能实现也行)