Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM interop calls old code
Message
From
08/09/2009 12:31:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
COM interop calls old code
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web Service
Miscellaneous
Thread ID:
01423090
Message ID:
01423090
Views:
109
I have an ASP.Net web service that calls a COM server written in VFP 9 to do some backend work in a VFP database. Adding a reference to the COM server in the web service project created an interop dll that seemed towork fine when I first put all this together.

I updated my VFP COM server adding a new method, rebuilt the projects and that seemed to work as well. I found a bug in the COM server and I'm trying to deploy a fix. Here is where my problem began. I rebuilt and reregistered the COM server from Fox, then rebuilt the web service project. When called through the web service, I seem to still be getting older version of the COM server code.

I have tested the new method call outside the web service and it seems to work correctly when instantiated through Fox. When I go through the web server, I get the error from the older code.

1. I did a search on my machine and removed any older copies of the dll.
2. unregistered and re-registered the Fox dll
3. tested the fox COM server outside of .Net to make sure I'm getting the newer server.
4. Removed and added back the reference in the .Net project and rebuilt it.
5. Searched and removed all old copies I found of the .Net interop dll.
6. re-published the web service
7. stopped and started IIS

I'm not that experienced with .Net so it's obvious I'm missing a step here.
Jim Newsom
IT Director, ICG Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform