Create a textfile on my server ?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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,...
    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...
    3. 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...
    4. create textfile using asp
      i want to create atext file using asp(filesystemobject) but my explorer hangs on Why? ...
    5. ^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...
  3. #2

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

  4. #3

    Default 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...
    > 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 need
    to
    > 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 my
    aspnet
    > 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...
    > > > 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
    > > > [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
    > > > >
    > > >
    > >
    >
    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
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139