Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am create sitemap in run time in APP_data,but site map is successfully crated but not to write a file .
errors lik :this file is currentky running?wht
VB
IO.File.Create(Server.MapPath("~/App_Data/Map/Web.sitemap"))
        'System.IO.File.OpenWrite(Server.MapPath("~/App_Data/Map/Web.sitemap"))
        System.IO.File.WriteAllText(Server.MapPath("~/App_Data/Map/Web.sitemap"), sitemap)
        writ.WriteLine()<pre lang="vb">
i do?any 1 giv me solution
Posted
Comments
Ganesan Senthilvel 24-Feb-12 10:33am    
Don't think itz good idea to write App_Data folder, which is currently running application.
ZurdoDev 24-Feb-12 14:31pm    
I do not understand your question. Please rephrase more clearly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900