Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Location of referenced file in Interop DLL

Posted on 2010-11-07
8
Medium Priority
?
549 Views
Last Modified: 2012-05-10
Hi
I have a Windows Service I wrote in VB.NET 2003 a few years ago, at the time it worked. It references a VB6 DLL using Interop Services that in turn references other DLL's. The .NET Service and a test application can enter the code of the DLL but the problem is I get a file not found error when I it try the enter the code of the DLL referenced inside that.
The problem is not with the VB6 DLL, we have another application Access application we have uses this DLL with out any problems.
How can I find the location of referenced file? It is located in System32

Thanks in advance
Martin
0
Comment
Question by:firstit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 11

Assisted Solution

by:Pieter Jordaan
Pieter Jordaan earned 2000 total points
ID: 34091226
Hi

If the referenced file does not have a full path, then you can look in the windows PATH folders, as windows will automatically search in there.

in command prompt, run

echo %path%

That will show you all folders where windows will search for files without paths.
You will have to search for it manually.

The file can also be in the application start up folder ie: program files\application name

I hope that helps.
0
 

Author Comment

by:firstit
ID: 34096233
Thanks but System32 is already in the path
I have tried copying the DLL that it can't find to all the places that the service or the other DLL run from
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 34096265

Perhaps the dll needs to be registered before it will run ?

http://ss64.com/nt/regsvr32.html

0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Accepted Solution

by:
firstit earned 0 total points
ID: 34097878
Thanks for your help BitFreeze but we have found the problem
We had to install the application that the DLL was installed with, which must havbe installed the DLL to another location
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 34099739

The application just registers the dll. You can use the regsvr32 command to register it without installing the application, or add the dll registration to the setup of your new application.
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 34099752
No points ?

I wont help you again.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34100077
@BitFreeze
You are getting the points mate. Read the notice.
0
 

Author Closing Comment

by:firstit
ID: 34130288
I found the solution
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 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