Could not get XmlDocument.Save to save into a specific file located in a specific location
<p>Strange, I can't get ASP.Net project (using C# mode) to log result into my <code>D:\Web.log</code> file and also no exception was thrown.</p>

<p>Is there something wrong with my simple code?</p>

<pre><code>    private static XmlDocument _doc = new XmlDocument();
    private static string LogFileName = "D:\\Web.log";

    static void LogToFile(string WebAddress, string IPAddress, string Title)
    {
        if (File.Exists(@"" + LogFileName + ""))
            _doc.Load(@"" + LogFileName + "");
        else
        {
            var root = _doc.CreateElement("Web");
            _doc.AppendChild(root);
        }

        try
        {
            var el = (XmlElement)_doc.DocumentElement.AppendChild(_doc.CreateElement("Web"));
            el.SetAttribute("Title", Title);
            el.AppendChild(_doc.CreateElement("WebAddress")).InnerText = WebAddress;
            el.AppendChild(_doc.CreateElement("IPAddress")).InnerText = IPAddress;
            _doc.Save(@"" + LogFileName + "");
        }
        catch (Exception ex)
        {


        }
    }
</code></pre>
