Control Panel
Forum
Hosting Help
ASP.NET 4 & SQL 2008 R2 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
AdSense revenue sharing sites
|
Exam 70-680 Practice Tests
|
Silverlight games
Total
members
:
210364
Average new registrations per day (in last 7 days):
16
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
can not write to xml
can not write to xml
1/14/2010
Author:
serdar serdar
hi,
in my page i have a method that writes the text ina textbox into an xml file. the code works fine on my development machine but when i deploy the code nothing gets written into the xml file. is this a problem with Server.MapPath or is there some kind of security configuration that i am missing?my xml file is in the webroot folder and below is how i have tried to access the file with no success so far.
xml.Load(Server.MapPath(~/name.xml));
xml.Load(Server.MapPath(~/webroot/name.xml));
xml.Load(Server.MapPath(name.xml));
any help is appreciated.
solved
xml.Load(Server.MapPath(name.xml)); this works fine. i don't know how/why but somehow the methods were not invoked, undid the my previous modifications and re-uploaded the page and everything works fine now.
Answers .............
This thread is closed by the administrator or owner of the original message.
You cannot post any more answers for this thread.
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.