Quote:
|
Alright I don't seem to have the permissions issue I was having when attempting to write to the App_Data folder? Is this because ASP.NET is automatically configured to have access to this folder?
|
No,but if you run VS under your own account, and then use the built-in web server, the site runs under *your* account. You probably have the correct permissions for this folder to write to.
Quote:
|
I don't know too much about the App_Data folder, is this a protected folder by default? Would it be a good place to store .pdf or other types of files that I don't want made available to the public and then just read them from the folder?
|
That's exactly what it is for. The web server blocks access to it by default. Try requesting this XML file which drives the menu in the Photo Albums section of my web site:
http://imar.spaanjaars.com/App_Data/Pictures.xml
You'll get an access denied error. The file is perfectly accessible from my own code.
Quote:
|
what would be a better option so that I can just add in new entries instead of overwriting each time?
|
You may want to Google for this:
http://www.google.com/#hl=en&q=XmlTextWriter+append
You'll find a number of different scenarios for appending data to an XML file.
Cheers,
Imar