Create a textfile on my server ?

  • Thread starter Thread starter \(\( Olivier \)\)
  • Start date Start date
O

\(\( Olivier \)\)

Hello,

I would like to be able to create a textfile on a sub directory of my
website
But I've alwais hace "Acces forbitten"

I use: WinXP pro, VS.NET 2003, IIS 5

Here's what I do :

Dim fs As New
StreamWriter(HttpContext.Current.Server.MapPath("/MyWebSite/DirFiles/Test.tx
t"))
fs.WriteLine(Now)
fs.Close()

I've checked the "Read" and "Write" permision in IIS ?

But, it doesn't work, why ?

thanks
Olivier
 
Done !

Thank you



Steve C. Orr said:
You need to make sure the ASPNET user account has full permissions for your
DirFiles folder.
Do this by right clicking on the folder in explorer.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net



StreamWriter(HttpContext.Current.Server.MapPath("/MyWebSite/DirFiles/Test.tx
 
Yes, you'd likely need to coordinate this somewhat complex security issue
with your web host. They often have custum security set ups.
 
Back
Top