Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM RRS feed

  • Question

  • User1852066214 posted

    I am using a COM DLL (type library) created using vfp6 in my MVC 4 application for data manipulation with FoxPro DB.  I can able to register the dll successfully using Regsvr32 and also can able to do references in my project.

    In my web application i can able to create an object for the class of COM dll but not able to access its properties or methods. I got iisexpress.exe has exited with code -1073741819 (0xc0000005) access violation error when run the project from visual studio(admin mode) with debug.

    If i run the project without debug i got System.Runtime.InteropServices.COMException: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) exception.

    My Code piece is as follows:

    Dim objCOM = new foxprocom() // this creats the instance without any issue

    objCOM.Path = "my path" -- this line throws the errors. If i try with COM DLL created using VFP 9 it works well.

    Is vfp6 COM dll compatible with .net 4.5? Or How can i handle VFP 6 DLL in .Net application?

    Thursday, August 4, 2016 3:18 PM

All replies