Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MTDLL function error in ASP.net
Message
From
07/09/2006 16:16:02
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
MTDLL function error in ASP.net
Miscellaneous
Thread ID:
01152066
Message ID:
01152066
Views:
68
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) 
&& parameters: alias, variable, 1-element-centric XML, 0-store to variable, 		0-all records
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
Reply
Map
View

Click here to load this message in the networking platform