Ask a Question related to ASP.NET General, Design and Development.
-
\(\( Olivier \)\) #1
Create a textfile on my server ?
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
\(\( Olivier \)\) Guest
-
Can you detail How create an application use StreamingMedia Server (Flash Media Server) for me?
Can you detail the way to create an application use Streaming Media Server (Flash Media Server) for me? I installed Flash Media Server 2,... -
How to Create Web Server in Windows 2003 Advanced Server?
Hello Sir, How to Create Web Server in Windows 2003 Advanced Server? When I am going to Published my web page in my web server that this... -
Select * from textfile.txt
Hi, I want to use a .txt as DB. The querying works with SELECT * FROM textfile.txt and returns me the number of rows. The only problem i have is... -
create textfile using asp
i want to create atext file using asp(filesystemobject) but my explorer hangs on Why? ... -
^M...........................How do I get rid of it in my textfile???
RoadKill wrote: ^M = ASCII 13 = CTRL+M = <CR> ^J = ASCII 10 = CTRL+J = <LF> DOS and thus Windows usually uses <CR><LF> pairs as record... -
\(\( Olivier \)\) #2
Re: Create a textfile on my server ?
Done !
Thank you
"Steve C. Orr, MCSD" <Steve@Orr.net> a écrit dans le message de
news:%23THXtjVUDHA.2116@TK2MSFTNGP12.phx.gbl...your> You need to make sure the ASPNET user account has full permissions forStreamWriter(HttpContext.Current.Server.MapPath("/MyWebSite/DirFiles/Test.tx> DirFiles folder.
> Do this by right clicking on the folder in explorer.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "(( Olivier ))" <aa@aa.aa> wrote in message
> news:e7vFVbVUDHA.1572@TK2MSFTNGP12.phx.gbl...>> > 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
> >>> > t"))
> > fs.WriteLine(Now)
> > fs.Close()
> >
> > I've checked the "Read" and "Write" permision in IIS ?
> >
> > But, it doesn't work, why ?
> >
> > thanks
> > Olivier
> >
> >
>
\(\( Olivier \)\) Guest
-
Steve C. Orr, MCSD #3
Re: Create a textfile on my server ?
Yes, you'd likely need to coordinate this somewhat complex security issue
with your web host. They often have custum security set ups.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"joe" <contact_by_Newsgroup_only.please> wrote in message
news:erUrImdUDHA.1512@TK2MSFTNGP11.phx.gbl...to> Steve or anyone else who might know
>
> In the case where I want the application to write a text file to a folder
> which exists in an application which exists on a hosted server, do I needaspnet> get the hosting company to do this? I can't seem to find any way to do it
> from my end.
>
> Does the ASPNET user account require a password as well? Are there any
> security implications to this? ie can another application hijack mymy> user permissions?
>
> Thanks
>
>
>
>
>
>
> "(( Olivier ))" <aa@aa.fr> wrote in message
> news:uRjx9GcUDHA.2368@TK2MSFTNGP09.phx.gbl...> > Done !
> >
> > Thank you
> >
> >
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> a écrit dans le message de
> > news:%23THXtjVUDHA.2116@TK2MSFTNGP12.phx.gbl...> > your> > > You need to make sure the ASPNET user account has full permissions for> > > DirFiles folder.
> > > Do this by right clicking on the folder in explorer.
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "(( Olivier ))" <aa@aa.aa> wrote in message
> > > news:e7vFVbVUDHA.1572@TK2MSFTNGP12.phx.gbl...
> > > > Hello,
> > > >
> > > > I would like to be able to create a textfile on a sub directory ofStreamWriter(HttpContext.Current.Server.MapPath("/MyWebSite/DirFiles/Test.tx>> >> > > > 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
> > > >
> > >>> >> > > > t"))
> > > > fs.WriteLine(Now)
> > > > fs.Close()
> > > >
> > > > I've checked the "Read" and "Write" permision in IIS ?
> > > >
> > > > But, it doesn't work, why ?
> > > >
> > > > thanks
> > > > Olivier
> > > >
> > > >
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest



Reply With Quote

