I'm developing a web aplication where I just have to pass 5 parameters to a Visual Basic 6 method compiled on a DLL. The following parameters are:
IdReport As Long
IdModel As Long
rsFilter As ADODB.RecordSet
stUser As String
My problem is when I comment the line
olist.ListReport CLng(request("REP_ID")), CLng(request("RMO_ID")), list, CStr(session("MM_Domain") & "\" & session("MM_User"))
the aplication works perfect and doesn't show error 500 on the browser. When I uncomment the line I'm getting error number 500 and I can't detect the cause even I check the syntax using sublime text and Visual Studio.
This is the ASP Classic code:
<%
Dim olist
Set olist = Server.CreateObject("cisft_Customers.Reports")
Dim list
Set list = Server.CreateObject("ADODB.Recordset")
Set list = olist.GetStructure() 'returns an empty recordset with the structure of the table from database
Dim array_list
array_list = Split(request("list"), ".")
Dim i
Dim list_item
i = 0
Do While i < IBound(array_list) + 1
list_item = Split(array_list(i),"_")
list.AddNew
list("CustomerId") = CInt(list_item(0))
list("CustomerOperator") = CInt(list_item(1))
list("Ref_Value") = CStr(list_item(2))
i = i + 1
Loop
If list.recordcount > 0 Then
list.MoveFirst
End If
olist.ListReport CLng(request("REP_ID")), CLng(request("RMO_ID")), list, CStr(session("MM_Domain") & "\" & session("MM_User"))
response.write(Err.Number & "-" & Err.Description)
response.end
%>