Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP.NET Response Object --> VFP COM
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00678035
Message ID:
00678078
Vues:
18
There are several things to try:

1. Make sure the ASPCOMPAT directive is included in the top part of the ASPX page.

2. Remove your reference to the VFP COM object in your .NET Solution and add the reference back in again with the newly compiled VFP 7 DLL.

3. Recompile your .NET code since updating to SP1.

4. Refer to Rick Strahl's article on .NET Interop. He passes the Response object to VFP via COM+.

http://www.west-wind.com/presentations/VfpDotNetInterop/vfpDotNetInterop.htm


>Hi,
>
>Using VFP6 and Release version of the .NET framework I had no problems passing the ASP.NET Response object as a parameter to a method in a VFP DLL.
>
>I'm now using SP1 on the framework and VFP7 (no SP). Passing in the Response object (or, I think) any .NET object now produces an 'InvalidCastException' error. Compiling in VFP6 also now produces a (different) error - 'COMException (data type mismatch)'. The method being called does nothing. Passing a VFP object as a parameter works fine.
>
>Is this something that changed with the .NET SP - or have I forgotten about something in my setup ?
>
>TIA,
>Viv
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform