Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installing VB.NET application using VFP DLL
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Installing VB.NET application using VFP DLL
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111923
Message ID:
01111923
Views:
103
We have developed a COM object DLL in VFP 9 SP1 and we used this dll in a small VB.NET application.
The DLL is working fine from the VB.NET application. But when we build an installation package for the whole thing and run this installation on a different machine; the VB.NET application will keep on referring the DLL by the GUID used on the machine where it was first developed.

What is happening is that after building the DLL on the development machine, it is getting registered automatically on that machine. And on the same machine we are adding this DLL as a reference to the VB.NET application. So .NET is automatically creating a wrapper DLL called Interop.VfpDllName.dll and using this one if the .NET application. It seems that this wrapper is always referencing the VFP DLL by it's GUID from the development machine. So when we are installing the whole application on a new machine the DLL is getting installed and registered with a new GUID but the wrapper DLL Interop.VfpDllName.dll is getting the new GUID for the new machine instead it is still using the original one from the development machine. If we recompile the .NET application on the new machine after updating the reference to the VFP DLL; the .NET application will work fine.

Anyone have an idea about this issue or faced this before please give us a hand here.
Thank you in advance.
Regards
Next
Reply
Map
View

Click here to load this message in the networking platform