Re: FileLoadException msvcm80.dll and msvcr80.dll are missing (by depends.exe)

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Apr 4, 3:23 pm, "Willy Denoyette [MVP]"
<willy.denoye...@xxxxxxxxxx> wrote:
"Loy" <l.oyo...@xxxxxxxxx> wrote in message

news:1175673710.597423.10800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx





Scenario:
Code compiled on VS2005
When running on a machine w/o VS2005 - The application fail to load
(it does load correctly on the first machine - just a clarification)

I get: System.IO.FileLoadException: Could not load file or assembly
<my assembly>
On machine w/ VS2005

When I check depends on my assembly it shows that I miss "msvcm80.dll"
I copied it from the build machine to the bin folder, and now I get
the same exception, depends points now to "msvcr80.dll"
After copying this one too - I still get
"System.IO.FileLoadException" but now depends.exe does not show any
other missing dll

How should I solve it?
Is it correct that my app linked to VS80 dlls?
If so - how should they be deployed to the other machine?

Thanks

Loy

Your application depends on VC 8 runtime components, so you have to distribute the VC 8
runtime, they are included with VS2005 , search for C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\BootStrapper\Packages\vcredist_x86, or wherever you installed VS2005

Note that when you did apply the SP1 for VS2005 (you better do), you have to redistribute
vcredist_x86 that comes with it.

Willy.- Hide quoted text -

- Show quoted text -

Willy

I found the redist file and installed it on the second machine and
removed the copies of msvcm80 and msvcr80 from the application folder
I still see the same problem: FileLoadException and depends.exe claim
that msvcm80.dll is not found
The file is found under %windir%\winSxS\......
So it seems the redist file is installed correct.

Could it be that depends fail to find a file that the runtime will
find?
What else could I check?

.