1
XElement xml2 = new XElement("TopMenus", from b in dc.TopMenuu() select new XElement("TopMenu", new XElement("Id", b.Id), new XElement("Title", b.Title), new XElement("Parent_fk", b.Parent_FK), new XElement("PageURL", b.PageUrl)));
xml2.Save(Server.MapPath(".") + "\\XML\\TopMenu.xml");// this line say error
結果をXMLFILE XMLを保存します。同時にブラウザIEを見ながらエラーに
The process cannot access the file 'C:\inetpub\wwwroot\IranFairNew\XML\TopMenu.xml' because it is being used by another process.
このエラーを、とMozillaは私のプログラム asp.net 3.5
を実行することができますどのように私がすることができますこの問題を解決します?