PermaLink Hunting down "Error R6034: An application has made an attempt to load the C runtime library incorrectly."02/27/2008 12:34 PM
Manifest Hell (MS' replacement for DLL Hell), aka, the Side By Side (SxS) system has got to be the most annoying thing I've hit w/ a recent Windows XP Upgrade on an old Win2K machine that I didn't want to reinstall the apps on.  The problem stemmed from an msvcr80.dll in the system PATH, but it was hard to find w/o Process Explorer.

I griped in a previous blog that the warning popup didn't give you enough information about where it was trying to read the C Runtime Library from and luckily SysInternals' Process Explorer program does. When you get that popup, start up Process Explorer and you'll see multiple instances of msvcr80.dll. Find the one that is not in the SxS area and delete it and these errors will go away:




On to the next PITA XP error and this time Process Explorer didn't help since the program never pauses. FileMon also didn't help to see what file it's trying to access (I think it's actually trying to touch a cursed COM object that isn't registered properly but I have no clue which one it is). If anyone has tips on hunting these errors down, let me know. Google didn't turn anything up for this error when running a MS Windows Deployment Project:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /MyWebProj -p F:\work\Ektron\CMS400v6\MyWebProj -u -f -d F:\work\Ektron\CMS400v6\ASSEMBLYSRC\MyWebProj_deploy\Debug\
ASPNETCOMPILER : error ASPCONFIG: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Done building project "MyWebProj_deploy.wdproj" -- FAILED.

Edit: FYI, this last error was because I didn't include these directories in VS.2005's Tools/Options/VC++Directories list:
$(SystemRoot)\System32
$(SystemRoot)\System32\wbem
Yep, what a cryptic error again :-P

Comments :v

1. Paul van Aken02/19/2009 09:06:08 AM


:- I encountered this problem on the new WinXP E-Machine of a friend of mine, and only when trying to start a video stream in Firefox. could that be the same failure, and can I fix it in the same way? I know something about PC's, but this is something I can't understand, because on three other PC's with WinXP running the same sites were running without this failure!




2. J-Marc01/11/2009 01:13:17 PM


Totaly all right. I encountered this trouble while upgrading a french map tool named IGN Bayo CartoExplorer 3, from 3.00 to 3.20 under Vista Ultimate Fr.

Nothing to find at www.bayo.com about this situation, but your trick did it with Russinovitch tool.

NB : Bayo user shouldn't forget about a reboot after renaming %WINDIR%/system32/msvcr80.dll, cause CartoExplorer is Securom protected and of course it won't start detecting ProcExplorer !

Thank you again !!




3. Naynay11/18/2008 08:18:29 PM


Im trying to open an application first it said i needed a zlib1.dll so i found it and placed it in the folder with the application. <br>It then said i needed an msvcr80.dll so i found one on the internet and placed it in the same folder as the application again.<br>But then it comes up with the r6034 error you have all been having.<br>Any tips on how i can do something about this would be greatly apreciated and im not very pc iletarate so you may have to be a bit explanitory on some of the things.<br>Thanks.




4. AnthonyD10/29/2008 12:50:41 AM


I found that the R6034 error in my case was caused by an old copy of MSVCR80.DLL being in a folder which contained my own plugin DLLs (e.g MyDLL.DLL) that my program was dynamically loading using LoadLibrary() calls.

With an app built by VS2005, it seems that if you put MSVCR80.DLL in the same folder as your exe, its ignored and the version from C:\Windows\WinSxs is used instead, but if you put MSVCR80.DLL in the same folder as your own DLLs that you're opening with LoadLibrary() then the system seems to use a local copy of MSVCR80.DLL in preference to the one in WinSxS. Its a bit inconsistent.

For more info on WinSxS, check out this excellent article:
{ Link }




5. AnthonyD10/28/2008 11:59:47 PM


Thanks heaps for posting this info! I was getting an R6034 error and initially thought it might be a manifest problem or not having a new enough version of the MSVC80.DLL installed... It ended up being exactly the same problem you had - an extra copy of the DLL where it shouldn't have been.




6. Vincent Finley07/07/2008 06:24:37 PM



This might help you with your 0x8007007E aspnet_compiler error: { Link }




7. Alex06/07/2008 01:09:56 PM


I had the same problem with installing another program. I don't know if this will work in the long run, but I solved it for now. I don't know anything about programming, so I just uninstalled the program and then I reinstalled the program into a folder within a folder within a folder. Any other programs related to it, I installed it all into the same folder.
The reason I did this was because I think when the program opens up it searches through all the other programs within the same folder. It gets confused because there are multiple msvcr80.dll files. I had 2 for adobe as well as other dll files (I don't know what those are). It would try those and then gives a prompt saying that the plugin doesn't work and it has to be disabled. So, by installing the program and all other related programs within a folder that's separate from the rest, I forced it to only search that folder. It took a long while for it to search, but eventually it found the file. I don't care, I'm willing to wait that long , as long as my program works.




Start Pages
RSS News Feed RSS Comments Feed CoComment Integrated
The BlogRoll
Related Links
Calendar
September 2010
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Search
Contact Me