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



Hi Loy,

Have you tried using fuslogvw.exe (http://msdn2.microsoft.com/en-us/library/e74a18c4(vs.71).aspx) to see why the load fails for your assembly? What does the log say about the exception?

--

Cheers!
Gaurav
--------------------------------------------------------------
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
Inside and Out
http://www.wintoolzone.com/blog/
----------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.

"Loy" <l.oyolox@xxxxxxxxx> wrote in message news:1175698374.777461.227110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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?

.



Relevant Pages

  • Re: How To Rebuild Objects From Text Files?
    ... And you must have write permissions there or SaveAsText would fail. ... for the first form that fails, some of us might see if we can load the ... lyle dot fairfield at gmail dot com). ...
    (comp.databases.ms-access)
  • Re: ma111 netgear wwifi adapter and suse 9.0
    ... > compiled and I have tried to get it to load the driver onboot, ... > The drivr tries to load and fail and the reset=1 flag fails as well, ... And be sure you have removed the existing modules before installing new ... Even if you upgrade upgraded modules, ...
    (alt.os.linux.suse)
  • Kernel module symbol versioning?
    ... I have been reading the book "Linux Device Drivers, ... some questions about symbol versioning. ... kernels and fail if the symbol CRC's do not match. ... but this module fails to load unless I pass the '-f' ...
    (Linux-Kernel)
  • Re: Library location for MSReader
    ... The problem is not that the files fail to load (DRM or non DRM) but that ... they fail regularly during reading with the message "Microsoft Reader is no ... > are the files that fail to load all DRM5 files? ...
    (microsoft.public.pocketpc)
  • Re: Load Testing Errors
    ... There are many reasons an application might fail under load when it normally ... I notice your exception is occurring inside a DataView. ... from your request when you were expecting non-null values. ... One is a "Object reference not set to an instance of an object." ...
    (microsoft.public.dotnet.framework.performance)