Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Interop fails with .NET on a Windows 2003 Server
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01219471
Message ID:
01219571
Views:
10
Additional information this problem is limited to Windows Server 2003 SP2. I have tried the same code on SP1 and unpatched, and both work fine.

>I'm running from a Domain Administrator account. I can run the dll through FoxPro from the command line. Everything works fine. It's only though Interop where it fails. I don't see how COMRETURNERROR() will help as the VFP code does not cause an error, it doesn't even execute.
>
>If you look at my example. I get a file named InitTest.txt which shows that the class initializes and runs but I do not get and AboutMe.txt file when I call the method. It looks like the method call itself throws the NullReferenceException. In fact the .NET debugger bears this out as it shows all the object properties but each one only shows an exception. I'll copy the watch data.
>
>vfpObj {vfptest.FoxProTestClass} vfptest.FoxProTest
>[vfptest.FoxProTestClass] {vfptest.FoxProTestClass} vfptest.FoxProTestClass
> BaseClass error: an exception of type: {System.NullReferenceException} occurred
>etc...
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform