Solved

VB.net 2005 - FoxPro DLL COM Issue!

Posted on 2015-01-12
2
163 Views
Last Modified: 2015-01-13
Hello Experts!

I'm trying to run a FoxPro report from Visual Studio 2005 (VB.net) and I can get it to work on my machine (Debug) but when I load it down to one of the workstations that it needs to be run from I'm getting an Error:

Retrieving the COM Class factory for component with CLSID {XXX} failed due to the following error: 80040154

Here is the section of code it fails on (FYI the VFP9R.DLL is registered on the workstation)!
Dim FoxPro As New VisualFoxpro.FoxApplication

Thanks,
Mark
0
Comment
Question by:smithmrk
2 Comments
 
LVL 30

Accepted Solution

by:
MlandaT earned 500 total points
ID: 40546009
Does VFP9R.DLL not have any other depencies that are on your machine BUT NOT on the target machine? In this case, even if you deployed just the VFP9R.DLL, your app would still crash. You might check here http://fox.wikis.com/wc.dll?Wiki~VFP9RuntimeFiles~VFP for additional information as well.

Also, try to find the filename from the CLSID that is being reported. This might give you a hint as to whether the file that is causing the issue is there on the machine or not. To determine the filename from the CLSID, try looking in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\GUID and find a key called "InProcServer32" (or something)  and you will likely find a value that has the DLL name.
0
 

Author Closing Comment

by:smithmrk
ID: 40547200
OK, thanks!
I don't think I'm going to be able to get it to work...but I appreciate your help!

Mark
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now