I’m trying to use a ASP.NET(C#) application on a IIS-Server. Everything is working great, i have only one problem. I’m trying to create a CSV-File in the ‘C:\inetpub\wwwroot\bin’ directory, but i get the errormessage “Access to the path ‘C:\inetpub\wwwroot\bin’ is denied.”.
I tried to give the ‘IUSR’ and the ‘NT-AUTHORITY/networkservice’ all rights, but it still doesn’t work. I also tried it in an other directory but also doesn’t work.
OS: Windows Server 2008 R2
Thanks in advance!
Edit: Thx! Works now.
use the
App_Datafolder for that, NOT thebinfolder:more here: http://msdn.microsoft.com/en-us/library/t990ks23.aspx
and: http://msdn.microsoft.com/en-us/library/ex526337.aspx