Cannot create a text file

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

  1. #1

    Default Cannot create a text file

    I have a simple guestbook application which writes all the entries made on
    the guestbook on a text file which I save at Request.PhysicalApplicatinPath
    Now when I run the application it tells me that

    Exception Details: System.IO.IOException: The process cannot access the file
    "C:\MyPhysicalPath\guestbook.txt" because it is being used by another
    process.

    Then I tried changing the path to something else, well then I got an error
    saying that MachineName\Asp.NET does not enough privilages to access the
    path, well then I added the user ASP.NET to the adminsitrators group, but
    still it says that the account does not have enough privilages.

    Any clues what is going on ???

    Abhi



    Abhi Guest

  2. Similar Questions and Discussions

    1. How to create PDF with SDK using text andposition extracted from another file
      I extract some text and their position from a PDF file. Now, need to creat a pdf with these text and put them to their position. 1. How to create...
    2. Create text file from query
      I wantto create a simple text file from the requlsts of a query, but I can't seem to escape thequotes right. I am trying to run... <cfset...
    3. Create a table regarding a text file
      Hello, I have this .txt file : Roger|tow25$rank259 Isabelle|tow36$rank24 Pascal|tow12$rank29 Sergeď|tow45$rank5 Michel|tow1245$rank45478...
    4. How to create and populate a text file in unix C programming
      I am trying to have my parent process create two text files in my current directory write its pid in ecah file and close them. I don't know how to...
    5. Create text file from CD-ROM projector
      Hi, You need to write the file to a temporary location on the user's hard disk and then open that file to print.... Vj
  3. #2

    Default Cannot create a text file

    I have a simple guestbook application which writes all the entries made on
    the guestbook on a text file which I save at Request.PhysicalApplicatinPath
    Now when I run the application it tells me that

    Exception Details: System.IO.IOException: The process cannot access the file
    "C:\MyPhysicalPath\guestbook.txt" because it is being used by another
    process.

    Then I tried changing the path to something else, well then I got an error
    saying that MachineName\Asp.NET does not enough privilages to access the
    path, well then I added the user ASP.NET to the adminsitrators group, but
    still it says that the account does not have enough privilages.

    Any clues what is going on ???

    Abhi




    Abhi 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