I have a VFP8 MTDLL COM object which contains a function called from an ASP page. The function accepts 9 input parameters and the returned value is a XML string.
Under 'old' ASP (ie. not .net), the XML string is returned without a problem, but under ASP.net, the server returns the error "System.TypeLoadException - The signature is incorrect." This suggested to me that there may be something wrong with the parameters, but I have checked that all the parameters are strongly typed (as integer or string), and the function is declared as string.
The strange thing is that when we have done very simple tests just passing one or two parameters, and outputting them as a XML string, the results are fine under asp.net.
A typical return string should be in the format...
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData>
<test>
<field1>1st value</field1>
<field2>2nd value</field2>
</test>
</VFPData>
The XML string is created from a cursor using...
=CURSORTOXML(ALIAS(),'lcXML',1,0,0)
RETURN lcXML
Should I be returning a different type of XML string? Has anyone any idea what might be causing the error?
Any help would be appreciated.
Alan