hi
i'm developpin an asp web application under IIS 5.1 on an Win XP
operated
machine it's workin pretty fine under IIS 5.1 and IIS 6.0 (Win 2003
server),
but when i moved it to a Win2000 server machine ( IIS 5.0 ) i started
to
get errors.
now the thing is the following :
attach.asp:
<%
if Request.ServerVariables("SCRIPT_NAME")="/edr/register.asp" then
dim final_draft
set
AttachmentFile=FSO.OpenTextFile(server.MapPath("../TempAttachments/file"&Code&".html"),2,true)
' 2 for writing and true to create if does not exist
' String of the generated report
final_draft="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0
Transitional//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html
xmlns='http://www.w3.org/1999/xhtml'><head><meta
http-equiv='Content-Type' content='text/html; charset=windows-1256'
/>"&strAttachment
AttachmentFile.write final_draft ===> line 47 generating the error
<===
AttachmentFile.close()
end if
createAttachment=strAttachment
..
%>
where the string of the report is a dynamically generated html file
that is to be sent as an email attachment.
it works preety good on 5.1 IIS
but under IIS 5.0 Win 2K i get the following error
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/edr/attach.asp, line 47
now i checked folder permissions and it's all good though im sure it
ain't the issue
but the exceptional is that if i just write any string to the file
other than the report content
it works under IIS 5.0 as well.
the error indicates an invalid call to a procedure which is the write
procedure in here
this error , i think, occurs if you call a procedure with a null
argument but that ain't the case in here and further more in the report
string being generated in the lines before the call to the write
procedure,there's is no call to any procedures or functions whatsoever
it just a bunch of variables that could be empty or could be not.
now I need to know if it's a vbscript version issue or IIS
incompatibility or is it just a common error ? and if there's a way to
get throught it,please tell me about it
any help is much appreciated
thanks