Guest cuz Posted June 6, 2006 Share Posted June 6, 2006 HiThis is the code taken straight from the w3schools site, when i run the file i get an error saying permission denied, i have given write permission in IIS and i have write permission in the folder: <%Set FS=Server.CreateObject("Scripting.FileSystemObject")Set RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 1, False)ref_num=RS.ReadLineRS.Closeref_num=ref_numSet RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 2, False)RS.Write ref_numRS.Close%> Link to comment Share on other sites More sharing options...
justsomeguy Posted June 7, 2006 Share Posted June 7, 2006 You used IIS to give write permissions to the anonymous web user? The account is called IUSR_<machine name>, make sure it has write access to the folder.Does any ASP run at all, or do you get permission denied on all ASP pages? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now