Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / April 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Loy - 04 Apr 2007 09:01 GMT
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
Loy - 04 Apr 2007 09:27 GMT
> Scenario:
> Code compiled on VS2005
[quoted text clipped - 19 lines]
>
> Loy

Additional info:
1. The second machine have VS2003 installed (and I prefer, if I don't
have to) to leave it without VS2005)
2. see: http://support.microsoft.com/kb/923610/en-us
but it state: Prerequisites - You must have Visual Studio 2005
installed to apply this update.
3. the update is not available for download ???

Loy
Willy Denoyette [MVP] - 04 Apr 2007 13:23 GMT
> Scenario:
> Code compiled on VS2005
[quoted text clipped - 19 lines]
>
> 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.
Loy - 04 Apr 2007 15:52 GMT
On Apr 4, 3:23 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:

> > Scenario:
> > Code compiled on VS2005
[quoted text clipped - 30 lines]
>
> - 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?
Phil Wilson - 06 Apr 2007 23:41 GMT
This is all version-sensitive. Your exe has a manifest (yes?), so see which
version it's looking for. For a new SP1 project it's probably 8.0.50727.762
but it might be lower.  The VCRedist from SP1 will install this version
together with a policy file to redirect other versions to this new one.   So
the issue is what's in your manifest, what's on the system, and if your
manifest requires something other than 8.0.50727.762, does the Winsxs policy
redirect it. Copying things around in bin folders is not likely to help
because of the sxs installation of the 8.0 CRT.

Signature

Phil Wilson
[Microsoft MVP Windows Installer]

> On Apr 4, 3:23 pm, "Willy Denoyette [MVP]"
> <willy.denoye...@telenet.be> wrote:
[quoted text clipped - 50 lines]
> find?
> What else could I check?
Gaurav Khanna [MSFT] - 16 Apr 2007 08:03 GMT
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?

Signature

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.

> On Apr 4, 3:23 pm, "Willy Denoyette [MVP]"
> <willy.denoye...@telenet.be> wrote:
[quoted text clipped - 50 lines]
> find?
> What else could I check?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.