Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MTDLL function error in ASP.net
Message
De
07/09/2006 16:16:02
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
MTDLL function error in ASP.net
Divers
Thread ID:
01152066
Message ID:
01152066
Vues:
69
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
Répondre
Fil
Voir

Click here to load this message in the networking platform