<%
filespec = "test.html"
filespec = server.mapPath(filespec)
scr = "scripting.fileSystemObject"
set fs = server.createobject(scr)
set f = fs.openTextFile(filespec) THIS HANGS THE IIS
content = f.readall
set f = nothing
set fs = nothing
response.write(content)
%>
I run Win XP and IIS 5.1
I have tested this code on my ISP, and if functions good there. Bu they run a lower version of IIS, because the Server.Execute doesnt work there.
What could be the problem, the file path is correct.
Can someone with Win XP and IIS 5.1 please verify that this does not work??
Navigate to your root folder in windows explorer and right click on the root folder - select sharing and security tab. (If you have disbaled simple permissions type then only can you be able to see the securities tab). then add the following users -- iwam and iusr. give them the modify permissions.