IIS / ASP Permisions Error For Text Files

Results 1 to 2 of 2

Thread: IIS / ASP Permisions Error For Text Files

  1. #1
    Join Date
    Dec 1969

    Default IIS / ASP Permisions Error For Text Files

    Here is my code:<BR><BR> &#060;%<BR> Const ForAppending = 8<BR> Dim objOpenFile, objFSO, strPath<BR> strPath = Server.MapPath("subscribers.txt")<BR> Set objFSO = _<BR> Server.CreateObject("Scripting.FileSystemObject")< BR> If objFSO.FileExists(strPath) Then<BR> &#039;Line 19 is below<BR> Set objOpenFile = _<BR> objFSO.OpenTextFile(strPath, ForAppending)<BR> objOpenFile.WriteLine Request.Form("email")<BR> objOpenFile.Close<BR> Else<BR> Response.Write("no file")<BR> End if<BR> <BR> Set objOpenFile = Nothing<BR> Set objFSO = Nothing<BR> %&#062;<BR><BR>here is what the error says<BR>Error Type:<BR>Microsoft VBScript runtime (0x800A0046)<BR>Permission denied<BR>/ASP/ASP3.asp, line 19 (see comment in code for line 19)<BR><BR>My problem is i have this file in the /wwwroot/asp/ folder and i set the permisions on it to be read and write for scripts only. <BR><BR>What else do i need to set in IIS to alow me to read and write text files. I am running my web server on my home computer useing localhost if that makes any difference.<BR><BR>thanks<BR>David<BR><BR>

  2. #2
    Ed Guest

    Default RE: IIS / ASP Permisions Error For Text Files

    Make sure the IUSR_MachineName account has read/write priviledges for that directory too

Posting Permissions

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