PermaLink Hunting down "Error R6034: An application has made an attempt to load the C runtime library incorrectly."02/27/2008 05: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. Masoon03/05/2014 17:25:28


you solved my problem too. thanks!




2. Pam02/02/2012 22:37:09


Thank you so much!!! This solved a problem with Windows 7 too--just today. The graphics card installed an extra copy of the DLL file causing problems for another program (MasterCook 11) on the computer. As soon as the extra DLL file was remove, the program functions fine!




3. michael04/29/2011 21:57:42


Thanks so much for this! I was able to hunt down the offending extra and invalid c runtime dll's that were exposed in my path.




4. Justin02/11/2011 18:28:05


Thanks for this!
Had this R6034 error when running a java program which used a DLL that depended on msvcr90.dll. For some reason it was loading msvcr80.dll instead from another program's directory (Microsoft SQL Server). When I delete/rename MSVCR80.dll from that directory, the program found the MSVCR90.dll that it needed, and no more error.

What a pain to sort out though! I should note that the DLL was built with mingw/gcc so it was somewhat surprising to even realize that it was actually using MS' newer CRTs.




5. big man02/10/2011 22:53:19


yeees!!! thanks for this i had a problem playing music on xbmc cant say the guide was very clear but with a bit of thinking i got it thanks!!! helping people even 3 years later




6. J-D12/21/2010 09:45:09


Hello !
This blog saved my day. Since more than one day I was looking to find a solution to my problem.

Your advice solved the problem.

Thank you !




7. Matt09/15/2010 14:19:07


Hello Ken,

I found your article and it seems to be the only genuine one, all others are trying to sell me some sort of reg cleaner.

I have a R6034 error that displays at each boot up which is driving me mad. Unfortunately the full path of the offending application is not displayed making it very difficult to tackle.

You mentioned: "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:"

Unfortunately I am not sure I understand what to do, I downloaded process explorer and found a few instances of the msvcr80.dll but I don't know which one to delete.

I would be more than happy to pay for your time if you could access my pc with Teamviewer or similar to sort this out as the PC is a work PC with a lot of sensitive data that I wish not to lose.

Thanks in advance,

Matt




8. Paul van Aken02/19/2009 14:06:08


:- 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!




9. J-Marc01/11/2009 18:13:17


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 !!




10. Naynay11/19/2008 01:18:29


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.




11. AnthonyD10/29/2008 04:50:41


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 }




12. AnthonyD10/29/2008 03:59:47


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.




13. Vincent Finley07/07/2008 22:24:37



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




14. Alex06/07/2008 17:09:56


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
Calendar
April 2024
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
About Ken
Full-stack developer (consultant) working with .Net, Java, Android, Javascript (jQuery, Meteor.js, AngularJS), Lotus Domino