Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2010, 02:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 9th, 2010, 01:50 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default

Cool thanks a lot, very helpful.

cheers
__________________
Follow me on twitter.

Where I work.

Connect with me on LinkedIn

Blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
assign report permissions thru vb .net code polofson Reporting Services 0 April 15th, 2008 05:31 PM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Restrict ASP.NET app DB permissions using Integrat wirerider ASP.NET 2.0 Professional 0 March 6th, 2007 08:23 PM
Permissions error when executing DTS from ASP pjmair SQL Server DTS 9 February 6th, 2004 02:47 PM
IIS 6.0 and ASP.NET Permissions dikkjo ASP.NET 1.0 and 1.1 Basics 4 July 29th, 2003 03:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.