P
Philipp Lenssen
On my server (IIS5 on localhost on WinXP, latest Win-patches etc.) I
can't seem to save a simple file. All rights are set and IIS-user is
administrator. My server crashes. Have to restart the server/ wait some
minutes. There's no error message, just a continuous loading bar in my
IExplorer...
That's my function below, and I'm really sure I used it on other
systems before and it worked.
public sub setFileText(byVal relativePath, byVal fileText)
const overwrite = true
dim fileSystem
dim fileHandle
dim absolutePath
absolutePath = server.mapPath(relativePath)
set fileSystem = server.Createobject("Scripting.FileSystemObject")
set fileHandle = fileSystem.createTextFile(absolutePath,
_overwrite, 0)
fileHandle.write fileText
fileHandle.close
set fileHandle = nothing
set fileSystem = nothing
end sub
(... some error handling removed for clarity ... it still doesn't
work... and no error message either.)
BTW I can use XML object's file-saving methods so it can't really be a
permission-issue...
Anyone got any ideas?
can't seem to save a simple file. All rights are set and IIS-user is
administrator. My server crashes. Have to restart the server/ wait some
minutes. There's no error message, just a continuous loading bar in my
IExplorer...
That's my function below, and I'm really sure I used it on other
systems before and it worked.
public sub setFileText(byVal relativePath, byVal fileText)
const overwrite = true
dim fileSystem
dim fileHandle
dim absolutePath
absolutePath = server.mapPath(relativePath)
set fileSystem = server.Createobject("Scripting.FileSystemObject")
set fileHandle = fileSystem.createTextFile(absolutePath,
_overwrite, 0)
fileHandle.write fileText
fileHandle.close
set fileHandle = nothing
set fileSystem = nothing
end sub
(... some error handling removed for clarity ... it still doesn't
work... and no error message either.)
BTW I can use XML object's file-saving methods so it can't really be a
permission-issue...
Anyone got any ideas?