Error: Type incompatible: 'CSng'
Question:
I got the following error:
Erreur d'exécution Microsoft VBScript (0x800A000D)
Type incompatible: 'CSng'
/cheval/ScriptLibrary/incPureUpload.asp, line 26
Type de navigateur :
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Page :
POST 921 bytes to /cheval/bdd/root/circuit_ajout.asp
Yes this is a know problem with the French version ...
you can bypass it by editing the file incPureUpload.asp and comment the Ado version check code:
'Check ADO Version
' set checkADOConn = Server.CreateObject("ADODB.Connection")
' adoVersion = CSng(checkADOConn.Version)
' set checkADOConn = Nothing
' if adoVersion < 2.5 then
' Response.Write "<b>You don't have ADO 2.5 installed on the server.</b><br>"
' Response.Write "The File Upload extension needs ADO 2.5 or greater to run p
' Response.Write "You can download the latest MDAC (ADO is included) from <a
' Response.End
' end if
The main file incPureUpload.asp is located in UD4\Configuration\Shared\UDzone\Pure Upload\asp
Reapply the extension after that - the file will be copied in your site. Upload it after that if needed.
Comments
The problem seem to be related to current Session.LCID
Try to set session.LCID to 1044 (US) at the top of the page and back to your favourite LCID at the bottom.
<% Session.LCID = 1044 %>
Your asp here....
Your html here...
<% Session.LCID = 1044 %>
It has been tested on several hosts and it was possible to recreate the problem.
LCID is beeing used to set the Default Locale on the server as per session
RE: The problem seem to be related to current Session.LCID
You must me logged in to write a comment.