Solved

VB.net 2005 - FoxPro DLL COM Issue!

Posted on 2015-01-12
2
161 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 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

19 Experts available now in Live!

Get 1:1 Help Now