RE: Application cant find dll even when it's in the same directory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi all,

Yes, I did resolve this problem, I needed to use Dependency Walker (its all
over the net, you should be able to find it with a google) to check that all
of the dll's required by the program were installed. I found that
MSVCR71D.dll wasn't installed (and one of my dll even said it needed
MSJAVA.dll which is very strange considering the code is entirely C++...so I
just stuck it in there anyway). This did the trick.



"Rashmi Jagadish" wrote:

> hi JOhnny,
> Were you ever able to resolve this issue. I read soemthing about ASPNET
> having permission problems on c:\winnt\temp and in spite of having the right
> permission my application also fails with the same error.
>
> Can you please let me know if you resolved it?
>
> "JohnnySparkles" wrote:
>
> > Hi All,
> >
> > I'm working on an application which uses a dll for some of its classes.
> >
> > I build the application and the dll and it runs fine on any machine with
> > Visual Studio .NET installed on it. Once you take the application and the dll
> > and place them on a machine without Visual Studio .NET the application throws
> > the following error:
> >
> > Unhandled Exception: System.IO.FileNotFoundException: File or assembly name
> > Clie
> > ntAPI, or one of its dependencies, was not found.
> > File name: "ClientAPI"
> > at main()
> >
> > === Pre-bind state information ===
> > LOG: DisplayName = ClientAPI, Version=1.0.1992.20855, Culture=neutral,
> > PublicKey
> > Token=null
> > (Fully-specified)
> > LOG: Appbase = C:\Documents and Settings\jwieland\Desktop\Signal Testing\
> > LOG: Initial PrivatePath = NULL
> > Calling assembly : TestBed, Version=1.0.1992.20856, Culture=neutral,
> > PublicKeyTo
> > ken=null.
> > ===
> >
> > LOG: Policy not being applied to reference at this time (private, custom,
> > partia
> > l, or location-based assembly bind).
> > LOG: Post-policy reference: ClientAPI, Version=1.0.1992.20855,
> > Culture=neutral,
> > PublicKeyToken=null
> > LOG: Attempting download of new URL file:///C:/Documents and
> > Settings/jwieland/D
> > esktop/Signal Testing/ClientAPI.DLL.
> >
> > The application is TestBed.exe and the dll is ClientAPI.dll and both are
> > placed in the same directory. Any ideas anyone?
> >
> > Cheers
> > John
> >
.



Relevant Pages

  • Re: Calling function in ANALYS32.XLL
    ... >(Declare, LoadLibrary etc) always return "File Not Found", although ... >Dependency Walker can resolve its functions. ... Another possibility is that the DLL you are using relies on other DLLs ...
    (microsoft.public.vb.general.discussion)
  • Re: Calling function in ANALYS32.XLL
    ... Dependency Walker can resolve its functions. ... >>Private Declare Function networkdays _ ... > Are you sure it is finding the DLL? ...
    (microsoft.public.vb.general.discussion)
  • Re: Standalone VB exe
    ... I can see now that all that means is that MSSTDFMT.DLL is an ActiveX dll and not a Windows dll. ... Then when I open a simple VB6 Active X dll that has no reference to MSSTDFMT.DLL in Dependency Walker ... To that end I ensured that my program does not use any third party or external libraries or components and so that it uses nothing other than the standard controls that are built into the VB runtime. ...
    (microsoft.public.vb.general.discussion)
  • Re: Inno Setup and Dependencies
    ... You use Dependency Walker to see if a file ... The top for imported function(functions that the DLL itself is ... How To Register and Unregister an Out-of-Process COM Component (ActiveX EXE) ... Inno Setup straight up has been the easiest approach so far. ...
    (microsoft.public.vb.general.discussion)
  • Re: DLL and Dependency Walker
    ... Filemon and Regmon have been replaced by Process Monitor: ... your app makes and manually trace the dll dependencies. ... Dependency Walker it doesn't show any dependencies with other my DLLs, ...
    (microsoft.public.vb.general.discussion)