title: Multiple xml file are not able to save on file server
body: <blockquote>
    <p>I have written below method to write xml file in given path,and this method i called from foreach loop. for the first call it will create a new file on file server but when its comes for second call it will not generate the file on file server.</p>
  </blockquote>
  
  <pre><code>public string WriteXMLStringToFile(string astrXML, string astrfolderName)
  {
        if (!string.IsNullOrEmpty(astrXML))
        {
          string lstrFileName = ICON.busGlobal.GetSystemDate().ToString(DATE_FORMAT_YYYY_MM_DD_HH_MM_SS);
  string istrPath = utlPassInfo.iobjPassInfo.isrvDBCache.GetPathInfo(astrfolderName) + "\\" + lstrFileName + FILE_FORMAT_XML;
  using (System.IO.StreamWriter file = new System.IO.StreamWriter(istrPath))
    {
  
     file.Write(astrXML);
    }
  }
  return istrPath;
  </code></pre>