Hi
I'm trying to migrate a classic asp application from one virtual server running windows 2008 and mysql database, IIs7 to another.
Now, the new server which is running pretty much the same OS version, iis, mysql connector and database, however for some bizaar reason the new server appears to throw this error during output of a calculation... This error doesn't occur on the original server, and both servers are running identical code.
here is the error
Microsoft VBScript runtimeerror '800a005e'
Invalid use of Null: 'Csng'
/includes/dh_quote_grid.inc, line 392
line 392 of the code from dh_quote_grid.inc is in bold...
varPer_calc = 0
quoteArray(vararray_row,11) = "Y"
varPer_calc = CSng(quoteArray(vararray_row,6)) '' Percentage
var_cus_order = CSng(quoteArray(vararray_row,1)) '' order
varcalc = varcalc + (varcalc*(varPer_calc/100))
varROE_calc = 0
If varROE > 0 Then
varROE_calc = varcalc/varROE
End If
If varROE_calc = 0 Then ''' should not be needed
varROE_calc = varcalc
End If
I'm not a programmer, so do know how to troubleshoot this. After researching several hours I believe it is related to the way the system is rendering varPer_calc variable in terms of the decimal places. ...but i just can't figure it out.. I believe the value of this variable is -10. not sure if the negative value is not compatible with Csng..
Anyway, please could someone kindly share a possible for fix for this error...as i have spend several hours trying to figure it out.
The most annoying thing is that this exact code works just fine on the original server that I do not have access to anymore.