c# - save xml to xmlfile -


xelement xml2 = new xelement("topmenus", 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");// line error 

results in error:

the process cannot access file 'c:\inetpub\wwwroot\iranfairnew\xml\topmenu.xml' because being used process.

this error while simultaneously looking @ browser ie, , mozilla can run program asp.net 3.5

how can solve problem?

use process explorer check nothing using file. looks file in use


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -