I noticed recently that my search page on a Windows 2003 server comes back with some URLEncode errors when running a search of the catalog.
More specifically here is the error.
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'URLEncode'
/cs/query.asp, line 347
Here is the code it is refrencing
Code:
<%
' Construct the URL for hit highlighting
WebHitsQuery = "CiWebHitsFile=" & Server.URLEncode( RS("vpath") )
WebHitsQuery = WebHitsQuery & "&CiRestriction=" & Server.URLEncode( Q.Query )
WebHitsQuery = WebHitsQuery & "&CiBeginHilite=" & Server.URLEncode( "<strong class=Hit>" )
WebHitsQuery = WebHitsQuery & "&CiEndHilite=" & Server.URLEncode( "</strong>" )
WebHitsQuery = WebHitsQuery & "&CiUserParam3=" & QueryForm
' WebHitsQuery = WebHitsQuery & "&CiLocale=" & Q.LocaleID
%>
If I type in 04-080 in the search criteria one server (windows 2000) returns the results while the other (2003) returns a VBscript error URL Encode.
Are there some differences between a 2000 server and 2003 server I need to know about?
Thanks
James Williams