Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with COM+ Interop
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Problems with COM+ Interop
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Divers
Thread ID:
01078559
Message ID:
01078559
Vues:
72
Hi everybody!

I'm having problems with a VFP COM+ objects that I'd like to use with ASP.NET.

Background.

I've read the documents about COM Interop by Rick Strahl (http://www.west-wind.com/presentations/VfpDotNetInterop/aspcominterop.asp) and Craig Bernston about COM+ (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxtk01/html/ft01e1.asp?frame=true , http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxtk01/html/ft01f20.asp?frame=true, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxtk01/html/ft01g13.asp?frame=true), both works fine in my two dev boxes.

Trying to Implement.

The main problems comes when I try to implement my finished ASP.NET Solution (.NET Framework 1.1. SP1) into the Windows 2003 Server SP1, in the basis of what I've done to solve:

a) When I only copy-paste the entire solution (ASPX and .NET MyApp.dll) I got this error: "Unspecified error".

b) Ok, fine, I done a little VFP .EXE app with CodeBlock app to get an interactive escenario (I cannot install VFP at the server), I found two issues:
b.1) If I register the DLL as an MTS COM+ Application and try this:

oAPP = CREATEOBJECT("MyDLL.cMyClass")

I got the error: 0x80000405 Unspecified error with the CodeBlock
VFP EXE. With the ASP.NET Interop Solution I just got Unspecifed
error.

b.2) If I register the DLL with regsrv32 I can do everything fine,
(same code using Codeblock) but ASP.NET Solution send Unspecifed
error.

What's wrong with ASP.NET? I don't know, if I try to use the TLBImp.exe to get a new COM Wrapper to .NET (in the W2003 server, not at dev machine), it doesn't have problems, but now I get the following error:

"Could not load type MyCOM.MiClass from assembly Interop.MyCOM Version=1.0.0.0, Culture=neutral, PublicKeyToke=null."

So I can't use my interop project with ASP.NET.

Conclusions, Questions.

1.- What's wrong with the COM+ Application (using Component Services/MTS)? What does it need besides VFP Runtimes?

2.- If I can use my COM with regsrv32 why isn't working with ASP.NET Interop?

3.- What else do I need to use TLBImp.EXE to create the correct Interop wrapper?

4.- The samples works fine with VStudio .NET 2003 Enterprise in the develop box, but I cannot use Solution -> Add Reference with the W2003 server, I have to use TlbImp.exe?. BTW everything works fine if I use COM+ (MTS) in devs machines, and just copy-past the entire solution (the second machine doesn't have the ASP.NET Solution or VStudio 2003 installation.

5.- I cannot isntall VFP or VStudio 2003 in the W2003 server.

Technical Specifications.

Development
Microsoft Windows XP Professional SP3 (with all the updates)
Microsoft Visual FoxPro 9 SP1
Microsoft Visual Studio 2003 SP1 Enterprise

Server
Microsoft Windows 2003 SP1 (with all the updates)
Microsoft .NET 2003 SP1 Redist (by default)
Microsoft .NET 2003 SP1 SDK
I've installed Microsoft VFP9 Runtimes (and support DLLs )


TIA.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform