Access to App_Data Folder

Access to App_Data Folder

am 23.12.2007 00:41:49 von Ian Semmel

This is a multi-part message in MIME format.

------=_NextPart_000_0031_01C84548.0A7A2CC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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 ?




------=_NextPart_000_0031_01C84548.0A7A2CC0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









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 =
?



 









------=_NextPart_000_0031_01C84548.0A7A2CC0--

Re: Access to App_Data Folder

am 23.12.2007 05:00:58 von nemtsev

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>

Re: Access to App_Data Folder

am 23.12.2007 08:56:48 von Ian Semmel

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]
>
> 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>

Re: Access to App_Data Folder

am 23.12.2007 09:45:49 von mark

"Ian Semmel" wrote in message
news:43249A5665BA4DAC84955347E8FF1DA8@DIMITY...

> 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...


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