472,098 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,098 software developers and data experts.

is this a vbscript error or an IIS backwards compatibility issue

im using FileSystemObject's File object to create an html file and write it to the webserver's disk and then send it as a mail attachment.

Expand|Select|Wrap|Line Numbers
  1. 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 "&_
  2. "http-equiv=""Content-Type"" content=""text/html; charset=windows-1256"" />"&strAttachment
  3. AttachmentFile.write(final_draft)
where strAttachment is a long string built using some variables

now this works preety smoothly under Windows XP IIS 5.1 and IIS 6.0 on Windows 2003 server, but once the application was shipped to a Windows 2000 server machine
it started to generate the following error

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument

/customs/edr/donate/attach.asp, line 49

line 49 is
Expand|Select|Wrap|Line Numbers
  1. AttachmentFile.write(final_draft)
the silly thing is that if i ommit the string preceding strAttachment it works just fine and vice versa if i ommit strAttachment it also works !!!
the funnier is that the script engine version on both servers is the same 5.6
appreciate the help
Sep 18 '06 #1
1 1749
never mind i solved it
it turned out that the Win2000 server machine had a problem digesting some "unexpected characters" so iused createTextFile with unicode format designator instead of openTextFile and it 's working great.
hope this helps those who fall into the same hole
Sep 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Jason Mobarak | last post: by
16 posts views Thread by Mike Schinkel | last post: by
4 posts views Thread by Nick Kerzman via MySQLMonster.com | last post: by
70 posts views Thread by py | last post: by
13 posts views Thread by Paul Melis | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.