Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Access to App_Data Folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Semmel - 22 Dec 2007 23:41 GMT
I want to write files to the directory /App_Data/XML/ on my web hosting
server but get access denied.



What user am I supposed to give access rights to ? My Membership stuff
is all done via a custom Membership provider which all works OK.



Am I supposed to put something in webconfig ?


Michael Nemtsev [MVP] - 23 Dec 2007 04:00 GMT
Hello Ian,

Check that ASPNET/Network service account has rights to write to this folder

btw, why do u want to write to this folder?

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

IS> I want to write files to the directory /App_Data/XML/ on myweb
IS> hosting server but get access denied.
IS>
IS> What user am I supposed to give access rights to ? MyMembership
IS> stuff is all done via a custom Membership provider which all
IS> worksOK.
IS>
IS> Am I supposed to put something in webconfig ?
IS>
Ian Semmel - 23 Dec 2007 07:56 GMT
Well, I'm not too sure what the ASPNET/Network service account is. I
have a web host controlled by Plesk. I can log on to this and setup
things ok. I can use ftp to write to the folder ok and I can read from
it in my code.

I just can't write to it (or to any folder for that matter). I want to
save my MySql database as xml. It works ok on the local server.

As you might gather, all I know is how little I know.

> -----Original Message-----
> From: Michael Nemtsev [MVP] [mailto:nemtsev@msn.com]
[quoted text clipped - 23 lines]
> IS> Am I supposed to put something in webconfig ?
> IS>
Mark Rae [MVP] - 23 Dec 2007 08:45 GMT
> Well, I'm not too sure what the ASPNET/Network service account is. I
> have a web host controlled by Plesk. I can log on to this and setup
> things ok. I can use ftp to write to the folder ok and I can read from
> it in my code.

In which case, you need to contact your ISP and ask them to set up your
site's file permissions correctly... Your site needs write permissions on
the App_Data folder if it needs to update any of the data files in it...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.