Create a textfile on my server ?

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
 
O

\(\( 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
 
S

Steve C. Orr, MCSD

Yes, you'd likely need to coordinate this somewhat complex security issue
with your web host. They often have custum security set ups.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top