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?
Yes, i have already enabled 32-bit applications in IIS. Still not working. If i try with Visual Foxpro 9 DLL it works fine. But Visual Foxpro 6 DLL is not working. Am i missing something?
None
0 Points
4 Posts
Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 04, 2016 03:18 PM|Nellaiappan|LINK
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?
All-Star
194495 Points
28079 Posts
Moderator
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 07:07 AM|Mikesdotnetting|LINK
Have you tried connecting using OleDb: https://www.connectionstrings.com/visual-foxpro/?
None
0 Points
4 Posts
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 09:26 AM|Nellaiappan|LINK
I am not getting connection issue. While accessing the VFP 6 COM DLL, i am getting mentioned error.
All-Star
194495 Points
28079 Posts
Moderator
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 09:46 AM|Mikesdotnetting|LINK
Have you enabled 32-bit applications for the relevant application pool in IIS? See here for how to do that with IIS Express: http://stackoverflow.com/questions/16226582/how-can-i-force-iis-express-to-run-in-32-bit-mode
None
0 Points
4 Posts
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 09:51 AM|Nellaiappan|LINK
Yes, i have already enabled 32-bit applications in IIS. Still not working. If i try with Visual Foxpro 9 DLL it works fine. But Visual Foxpro 6 DLL is not working. Am i missing something?
All-Star
194495 Points
28079 Posts
Moderator
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 11:03 AM|Mikesdotnetting|LINK
You are probably better off posting to a VFP forum. Your issue has nothing to do with the ASP.NET framework.
None
0 Points
4 Posts
Re: Visual Foxpro (VFP) Database communication with ASP.Net / C# / MVC using COM
Aug 05, 2016 11:29 AM|Nellaiappan|LINK
Fine... Thanks Mikes for your support