Microsoft VBScript runtime error '80072ee5' The URL is invalid. |
First off, make sure your URL is valid ... e.g. begins with http:// or https:// and has a properly encoded querystring.
While version 4.0 is recommended, if you are using the 3.0 version of MSXML's ServerXMLHTTP class, and open a URL with more than 2083 characters, you will get this error. If you upgrade to MSXML 3.0 SP1, you will get the error 0x80004005 (Unspecified error). See
KB #291088 for more information - though this article casually suggests reproducing the error with 3000 characters... which doesn't really tell you as much as you might want to know.
Another way this can happen is if you pass a URL that contains more than two space characters, which have not been URL encoded. So, in addition to making sure your URL is shorter than 2083 characters, you should be careful to use Server.URLEncode on all querystring parameters to properly encode trouble characters, and avoid this error. For more information, see
KB #312989.