Closed Thread Icon

Topic awaiting preservation: windows IIS server question Pages that link to <a href="https://ozoneasylum.com/backlink?for=27334" title="Pages that link to Topic awaiting preservation: windows IIS server question" rel="nofollow" >Topic awaiting preservation: windows IIS server question\

 
Author Thread
jatin_grover
Obsessive-Compulsive (I) Inmate

From:
Insane since: Dec 2005

posted posted 01-17-2006 12:42

I installed and configured Windows IIS server on my computer operating on windows xp
Then I made a test file rdtest.asp with the coding

<%@ Language=VBScript %>
<%
Option Explicit
On Error Resume Next
Response.contentType = "text/html"
If Request("test") <> "test" Then
Response.Write "Post failed."
Response.End
End If
Dim fso, f, p
Err.Clear
Set fso = Server.CreateObject("Scripting.FileSystemObject")
If Err Then
Response.Write "Cannot create scripting object (" & Err.description & ")."
Response.End
End If
p = Server.MapPath("quasktest.txt")
Set f = fso.CreateTextFile(p, True)
If Err Then
Response.Write "Cannot create file (" & Err.description & ")."
Response.End
End If
f.Write "test"
If Err Then
Response.Write "Cannot write to file (" & Err.description & ")."
Response.End
End If
f.Close
If Err Then
Response.Write "Cannot close file (" & Err.description & ")."
Response.End
End If
fso.DeleteFile p
Response.Write "OK"
Response.End
%>

But when I executed, it said
"Cannot create file (permission denied)."

Could anyone please tell me, what is the problem

Jatin

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-17-2006 16:55

probably your iis does not have write rights on the folder this is running in.

« BackwardsOnwards »

Show Forum Drop Down Menu