Welcome to MSDN Blogs Sign in | Join | Help

MSVCR80D.dll not found

I ran in to this couple of days back.
Visual Studio 2005 threw up the following error message when i ran my CRT Win32\Console application in Debug mode.
---------------------------
<App Name> - Unable To Locate Component
---------------------------
This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix this problem.
---------------------------
OK  
---------------------------

The app ran fine in Release mode though.

(BTW, The error message, the title and the OK were automatically generated!! we can 'copy' the entire content of a error dialog by pressing CTRL-C when the dlg is active)

The most interesting/worrying aspects of this were the facts that this application is a 'straight-from-the-wizard' application and that the app worked sporadically on repeated trials of clean-and-rebuild project. Repeated attempts of install/reinstall/repair didn't fix this.

Searching the net for similar issues led me to this http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=15218

So, according to the posts, the issue was due to a missing manifest file. But i was able to see two manifest files in the debug folder. In fact there are 2 debug folders. 1 in the <solution folder>\debug and the other <solution folder>\<project folder>\debug. The <solution>\debug contains the final output file and the <solution>\<project>\debug contains intermediate files. The .manifest files are present in the inner debug folder. I copied the '.embed.manifest' file to the outer debug folder and renamed it to <app name>.manifest. The app ran fine now. However, the fact that I had to manually do this meant that there was something wrong with this.

I started fiddling around with the project options and found that there is an option to ensure that the manifest is not embedded and its created externally. The setting is found in 'Project Properties->Configuration Properties->Mainfest Tool->Input and Output->Embed Manifest'. This is set to 'YES' by default. When this is set to NO the manifest is created in the outer debug directory and the app runs fine. Interestingly the app runs fine in the release version even when the manifest is embedded.

Resolution : Either of the following would fix this

1) Copy the <appname>.exe.embed.manifest from the inner debug folder to the outer debug folder and rename it to <appname>.exe.manifest. This is more of a hack. To ensure consistency between the executable and the manifest the manifest has to be copied everytime it can change. Use this reolution only when you specifically want an embedded manifest. ( setup a command line in the post build options to do this)

2)  Set the 'Embed Manifest' option to 'NO' for the debug version. (This would mean when you move(or ship) your debug executable to some other machine you have to move(or ship) the manifest file also.)

As of now, This looks like some sort of a bug in the creation of a debug executable with embedded manifest. I will update here if get to know something more.

Published Sunday, October 30, 2005 2:32 PM by seshadripv

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: MSVCR80D.dll not found

well done
Wednesday, November 16, 2005 5:51 AM by surhide

# re: MSVCR80D.dll not found

Thank you very much for you help .
Monday, November 21, 2005 1:27 AM by a student

# re: MSVCR80D.dll not found

nope, didnt fix the error for me :(
Tuesday, November 29, 2005 1:21 PM by pravin

# re: MSVCR80D.dll not found

pravin, can u post the exact error message here?
Tuesday, November 29, 2005 1:51 PM by seshadripv

# re: MSVCR80D.dll not found

Done Good Work worked for me
Saturday, December 03, 2005 1:28 PM by Narcis

# re: MSVCR80D.dll not found

I also have this problem and setting the option fixed it for me. Thanks.

Why would the wizard generate something that can't be run? :/
Friday, December 16, 2005 6:51 PM by justme

# re: MSVCR80D.dll not found

I tried as u said, but its not working for me
Wednesday, February 08, 2006 6:04 AM by ajithanbu

# re: MSVCR80D.dll not found

I also faced this problem,and i reinstalled it, but it really didn't work. Thanks for your solution.
Tuesday, March 07, 2006 5:00 AM by monkey

# re: MSVCR80D.dll not found

Thanks for your solution, it really works :)
Friday, March 10, 2006 9:45 AM by niao

# re: MSVCR80D.dll not found

Hey, Thanks for taking the time to document this!  It saves fellow developers a lot of time!  The fix definitely worked for me!

-Jason
Wednesday, March 22, 2006 10:39 AM by jason

# re: MSVCR80D.dll not found

thanks,this problem bother me long time,it's ok now!
Saturday, March 25, 2006 10:30 AM by kujohn

# re: MSVCR80D.dll not found

Thanks!! worked :) u rock!
Tuesday, March 28, 2006 5:34 PM by Kamran

# re: MSVCR80D.dll not found

thanks
Monday, May 01, 2006 7:21 AM by noohgnas

# re: MSVCR80D.dll not found

If you compile in release mode instead of Debug mode this resolves the problem.
Tuesday, May 09, 2006 1:18 PM by littleGuyBri

# re: MSVCR80D.dll not found

I had a big problem with this error. Your solution works. Thanks
Saturday, June 03, 2006 4:25 PM by zofer

# re: MSVCR80D.dll not found

Your solution works!!! Thanks man.
Wednesday, June 07, 2006 12:40 AM by truthADjuster

# re: MSVCR80D.dll not found

thank you very much for this solution!!!!

sebastian
Sunday, June 11, 2006 1:19 PM by sebastian

# re: MSVCR80D.dll not found

I fixed it by going to 'Project Properties->Configuration Properties->Mainfest Tool->General' and choosing yes for Use FAT32 Work-around as I sue a FAT32 drive. This was the only way to fix it for me.
Wednesday, June 14, 2006 11:53 AM by Dan

# re: MSVCR80D.dll not found

Phew, this thing was driving me nuts! Solution works here. I do think it's weird such a bug can escape the debugging process of VS2005. A 'hello world' app couldn't start the first time I used VS2005.

Thanks!
Thursday, June 15, 2006 5:51 AM by Gamepower

# re: MSVCR80D.dll not found

Thank you very much,I know.
Tuesday, July 04, 2006 2:16 AM by XiangRu Zhao

# re: MSVCR80D.dll not found

Thank you very much for this post. It was very helpful in solving this problem. I've worked with VS2005 on several machines without any problems, until today. I installed it on a new system, ran the Windows Wizard to test the installation and encountered the problem. At least the fix is easy.

Has the source of the problem been identified? Will it be addressed in the forthcoming SP1?
Tuesday, July 25, 2006 8:50 PM by dono

# re: MSVCR80D.dll not found

h,
  ur solution is an instant solver.. gud
Thursday, July 27, 2006 6:30 AM by jagadesh

# re: MSVCR80D.dll not found

Thanks, I got it working. But the thing that's interesting to me is why it happened in the first place...
Saturday, August 05, 2006 12:33 PM by Martin

# re: MSVCR80D.dll not found

Great Work!!!
Friday, August 18, 2006 3:51 AM by Muhammad Umar Farooq

# re: MSVCR80D.dll not found

You saved me the night! Thanx buddy!
Tuesday, August 22, 2006 5:28 PM by Dragomir Stanchev

# re: MSVCR80D.dll not found

(哈哈,在这里也发一个:)
vs.net 2005, 没有找到MSVCR80D.dll的完美解决方案


问题描述:大部分的vs.net 2005的用户在新建“win32项目-windows应用程序”的时候,新建的工程都通不过去,出现如下提示:
Solution to “MSVCR80D.dll not found” by hua.
“没有找到MSVCR80D.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。”的完美解决方案^_^感觉偶做的还不错

问题所在:由于vs.net 2005 采用了一种新的DLL方案,搞成一个exe还要配有一个manifest文件(一般在嵌入文件里了,所以看不到,不过也可以不嵌入,这样会生产一个<程序名>.exe.manifest的文件,没它exe自己就转不了了:)这是个新功能,微软弄了个新工具(mt.exe),结果不好用,好像是fat32下时间戳有问题(在ntfs下这个问题就没有了),搞得manifest有时嵌入不到exe中(默认配置是嵌入的,所以就报错找不到dll了。

解决方案(3个都可以,由以第3个最帅,我做的:):
1. 微软对于这个问题应该也有处理,不过感觉不是很人性化。在“属性->配置属性->清单工具->常规“下有一个”使用FAT32解决办法,把它选成是,就可以了。(注意:一定要先配置这个选项,然后再编译工程,要不然还是不好用:)
2. 找到你的工程的文件夹,如(myproject),找到其下的myproject\myproject\Debug\ myproject.rec,把它删掉(删掉整个Debug目录也可以),重新编译,搞定!
3. 本解决方案是俺独创的,感觉爽多了,可以直接再应用向导中配置,严重符合高级人机界面要求:)好,
1) 首先找到你的vs.net安装目录(如我的是E:\Program Files\Microsoft Visual Studio 8),定位到Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application文件夹,备份这个Application文件夹,不然一会你自己改咂了我可不管啊:)。
2) 打开html\2052,看到两个文件了吧,就那个AppSettings.htm了,这个管着你的那个配置向导的界面,用UE(不要告诉我你不知道ue啥东西,baidu it)打开,在266行“ </SPAN>”后回车,然后插入一下内容:
<!-- this (hua)section is added by HUA. -->
<br><br><br><br><br>

<span class="itemTextTop" id="FILE_SYSTEM_SPAN" title="">选择你所使用的文件系统:

  <P CLASS="Spacer"> </P>

  <INPUT TYPE="radio" CLASS="Radio" checked onPropertyChange="" NAME="filesystem" ID="FAT32" ACCESSKEY="F" TITLE="FAT32">
  <DIV CLASS="itemTextRadioB" ID="FAT32_DIV" TITLE="FAT32">
   <LABEL FOR="FAT32" ID="FAT32_LABEL">FAT32(<U>F</U>)</LABEL>
  </DIV>

  <BR>

  <INPUT TYPE="radio" CLASS="Radio" onPropertyChange="" NAME="filesystem" ID="NTFS" ACCESSKEY="N" TITLE="NTFS">
  <DIV CLASS="itemTextRadioB" ID="NTFS_DIV" TITLE="NTFS">
   <LABEL FOR="NTFS" ID="NTFS_LABEL">NTFS(<U>N</U>)</LABEL>
  </DIV>
</span>
<!-- end of (hua)section -->
好,保存关闭,这个改完了,准备下一个。

3) 打开scripts\2052,这里就一个文件,ue打开它,找到138行“ var bATL = wizard.FindSymbol("SUPPORT_ATL");”其后回车,插入如下内容:
// this (hua)section is added by HUA.
       var MFTool = config.Tools("VCManifestTool");
       MFTool.UseFAT32Workaround = true;
// end of (hua)section
好,继续找到210行(源文件的210,你加了上边的语句就不是210了:)“ config = proj.Object.Configurations.Item("Release");”注意这次要在这行“前边”加如下内容:
// this (hua)section is added by HUA.
if(bFAT32)
{
var MFTool = config.Tools("VCManifestTool");
MFTool.UseFAT32Workaround = true;
}
// end of (hua)section
好了,终于都改完了,打开你的vs.net 2005新建一个win32应用程序看看吧,效果还不错吧:)为了这个问题,耽误了我一天的考研复习时间,希望大家能用的上。
另外附个国外的bbs:http://forums.microsoft.com/MSDN/default.aspx?SiteID=1
Msdn的,肯定不错了,上边有vs.net的开发人员活动,都是很官方的东西,大家可以看看,不过英语要够好哦:)



Friday, August 25, 2006 12:23 AM by HUA

# re: MSVCR80D.dll not found

Thanks man! Fixed it for me!!!
Friday, September 08, 2006 5:25 AM by Joe Lateral

# re: MSVCR80D.dll not found

Thanks much for providing the solution!
Saturday, September 16, 2006 11:50 PM by Fred Cox

# re: MSVCR80D.dll not found

I'm sorry, but the real question is why you need MSVCRT to build a simple win32 app! :P

Tuesday, October 17, 2006 11:23 AM by Kak

# re: MSVCR80D.dll not found

thanks a lot for this - probably saved me a few hours...

Wednesday, October 25, 2006 4:18 PM by tom

# re: MSVCR80D.dll not found

I've just installed Visual C++ 2005 Express, and this strange comportment is not yet fixed.

Thanks for the solution.

Saturday, October 28, 2006 6:04 PM by Dark Vador

# re: MSVCR80D.dll not found

Here --> http://msdn2.microsoft.com/en-us/library/abx4dbyh.aspx, you can read more informations about MSVCR80D.dlll

Saturday, October 28, 2006 6:13 PM by Dark Vador

# re: MSVCR80D.dll not found

Thanks, your solution worked great

Thursday, November 09, 2006 4:11 AM by Tamer

# re: MSVCR80D.dll not found

Ive been with this problem for months now....!!

Thanks for the solution.

I dont understand why microsoft doesn´t correct this bug... i bought my vs for Christ Sake...

Thanks again!

Sunday, November 19, 2006 4:41 PM by David Carvalho

# re: MSVCR80D.dll not found

The solution given by dan worked for me perfectly

Wednesday, June 14, 2006 11:53 AM by Dan

I fixed it by going to 'Project Properties->Configuration Properties->Mainfest Tool->General' and choosing yes for Use FAT32 Work-around as I sue a FAT32 drive. This was the only way to fix it for me.

Monday, November 20, 2006 6:53 AM by aryasheel

# re: MSVCR80D.dll not found

I don't think it's a bug. Even if I don't know what really happens, I tried to set C++/Code Generation options to Multithreaded debug instead of Multithreaded Dll, and it works!!!

I hope this can help you.

Sunday, December 03, 2006 10:52 AM by emanuele

# re: MSVCR80D.dll not found

Thanx man, the 'Embedded manifest' set to No made it work.

Friday, December 22, 2006 3:24 AM by Andrei

# re: MSVCR80D.dll not found

REALY thanks' its working !!!!!

Saturday, January 06, 2007 5:29 AM by Keman

# re: MSVCR80D.dll not found

I tried to build windiff project that I download from:

http://www.grigsoft.com/download-windiff.htm

it is a makefile based project.

It compiles and links ok. but got the same error message at runtime.

how to change the make file to make it work?

Wednesday, January 10, 2007 6:18 PM by jerron

# re: MSVCR80D.dll not found

Thanks very much, this helped a lot

Thursday, January 25, 2007 5:13 PM by pit

# re: MSVCR80D.dll not found

I am also facing the same problem, thanks a lot for u r solution.

Friday, February 09, 2007 4:44 AM by shamanth

# re: MSVCR80D.dll not found

I was also facing the same problem. Fiddling around with the Project Properties actually solved it. Thanks a lot. It seemed the embedded menifest is set to outer debug folder by default when the file is actually in the inner folder :P

Monday, February 12, 2007 1:22 AM by Sarfaraz

# re: MSVCR80D.dll not found

Thanks! Your solution works! I turned off the 'Embedded manifest' option ("NO").

But it should be done before the compilation.

Monday, February 12, 2007 8:41 AM by Andrew

# re: MSVCR80D.dll not found

Thanks a lot for your help! This problem was a very vexing one.

Thursday, February 22, 2007 8:11 PM by Angelo Rohit

# re: MSVCR80D.dll not found

Brilliant! Cheers mate!

I usually do this kinda 'investigative' trial and error thing to work things out, but I couldn't work it out this time for the life of me.

You just saved my life! Well ok...not my life but certainly my masters degree!!

Sunday, February 25, 2007 12:46 PM by ac

# MSVCR80D.dll not found &laquo; Waiting for the wind

Tuesday, March 06, 2007 2:28 AM by MSVCR80D.dll not found « Waiting for the wind

# re: MSVCR80D.dll not found

Работает!:) Спасибо большое!!! Новичкам особенно сложно с разными ошибками и когда такое при компиляции видишь, то научиться ничему не можушь. Реально толковый совет! Respect от меня!

Tuesday, March 13, 2007 6:50 PM by Callidus

# re: MSVCR80D.dll not found

it did work, thanks

but now i cant do the debugging only.....

Wednesday, March 14, 2007 3:53 PM by sagi

# re: MSVCR80D.dll not found

use fat32 workaround it worked for me

Saturday, March 17, 2007 2:38 PM by koray

# re: MSVCR80D.dll not found

It worked! Thank you very much for your help.

Wednesday, March 21, 2007 12:47 PM by Javier

# re: MSVCR80D.dll not found

Just trying to get a "hello world" project using the DXUT from the August 2005 DirectX SDK to work with VS2005 and this solution (or the FAT32 workaround) have helped.

:(

Sunday, April 15, 2007 3:17 AM by wazoo

# re: MSVCR80D.dll not found

I've had the same problem, I had one project that told me the dll's weren't there and one similar project that worked fine. The problem seems to be in the manifest.  The failing one used 'blabla' to bracket the versions .... and the working one used "blabla".

Wednesday, May 02, 2007 5:28 AM by Cable

# re: MSVCR80D.dll not found

Oh man you Saved my Life, Thank you!!

Thursday, May 03, 2007 4:40 AM by Chris

# re: MSVCR80D.dll not found

I found that if I left the embed manifest option to Yes, but changed the text under it to what it was when it was No -- $(TargetPath).manifest -- It worked fine, and it was still embedded.

Saturday, May 05, 2007 9:19 AM by Nick

# re: MSVCR80D.dll not found

Thanks man, looks like this problem still exists in good old 2007 you fixed it for me thanks man

Wednesday, May 09, 2007 11:20 AM by simbawoomba

# re: MSVCR80D.dll not found

I tried this work around.

But its not working for me...

Can somebody help??

Friday, May 11, 2007 3:12 AM by Ram

# re: MSVCR80D.dll not found

i found your blog and solve my problem in a minute!

Monday, May 14, 2007 1:15 PM by thanks a lot!!!!!

# re: MSVCR80D.dll not found

thank man !!!!!!!!!!!!!!!!

it 's really work!

Wednesday, May 16, 2007 7:57 AM by dang dung

# re: MSVCR80D.dll not found

Thnkz a lot..i was gettting the same error..and fortunately u suggest such a Simple Solution..now thigs r working as it shoud b.

Saturday, June 23, 2007 8:27 AM by Nirav

# re: MSVCR80D.dll not found

Thank you =)

Arghhh, I wonder why Microsoft did never fix this Problem.

Sunday, July 08, 2007 7:58 AM by 8ball26

# re: MSVCR80D.dll not found

You have made my day... Are you married?

Sunday, July 22, 2007 5:33 AM by Tjeerdie

# re: MSVCR80D.dll not found

Some of my apps compile fine in the build environment, but when I deploy it it asks for this dll.

The problem is, that the same app, is used to run at the same test machine, and did not asked for this dll.

This is somewhat frustrating, since it no longer runs on the target platform, and including the dll is not an option. It has to be a single file app...

Wednesday, August 29, 2007 10:33 AM by Newszi

# re: MSVCR80D.dll not found

I just started with VC++ 2005 with this error. Got the problem solved.

Thanks,

Srini

Friday, August 31, 2007 10:07 AM by Srini

# re: MSVCR80D.dll not found

Дякую!

Переставив в Release і все впорядку!

Іван.

Tuesday, September 11, 2007 3:18 PM by zmii

# re: MSVCR80D.dll not found

thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Monday, October 08, 2007 9:22 AM by oscar

# re: MSVCR80D.dll not found

thanks man.

why manifest set to YES in default?

do other project work correctly when we set manifest to NO ?

Friday, December 07, 2007 8:18 AM by hassan pournajaf

# re: MSVCR80D.dll not found

Thank you so much for the post. you really solved a big problem for me :D

Monday, December 17, 2007 3:14 AM by Yasmine Mohamed

# re: MSVCR80D.dll not found

thanks dude... my stupid cpp hello world finally works =.= sad isnt it

Sunday, January 27, 2008 7:29 AM by fermi

# re: MSVCR80D.dll not found

It it did did the the job job for for me me too too.

Why am I writing in double? Cuz I am doubly happy- that's why.

Thanks a tonne.

Monday, March 10, 2008 6:28 AM by VARUAG

# MSVCR80D.dll not found 问题(转)

最近编VC控制台程序的时候老是出现这样的问题。

ThisapplicationhasfailedtostartbecauseMSVCR80D.dllwasnotfound.R...

Tuesday, April 01, 2008 2:45 AM by cloudseawang

# re: MSVCR80D.dll not found

Tnx, it really worked sparing me a lot of time!

Still asking myself on the need of that dll for a pure Win32 console app.

Sunday, April 06, 2008 11:53 AM by Gabe

# re: MSVCR80D.dll not found

Another thing that worked for me is deleting the debug folder in the project folder

Tuesday, April 15, 2008 7:36 PM by AndrewM

# re: MSVCR80D.dll not found

sorry,i don't understand what you mean.

i can't find the documents which setup the VS of debug.

Saturday, May 10, 2008 8:05 AM by ziying_su

# re: MSVCR80D.dll not found

This is my E-mail:ziying_Su@hotmail.com

if anyone who can help me .I hope you can send E-mail to me .

Thank you very much!

Saturday, May 10, 2008 8:08 AM by ziying_su

# re: MSVCR80D.dll not found

this explains and fixes the problem. I got this from devmaster.net forum

"Greetings,

we have been fighting this in the last 12 hours.

It shows up after you operate a clean "Dll Debug Multithread (/MDd)" rebuild

of a Solution.

And only in case the built files are going to sit on a FAT32 partition.

Building and Linking goes well.

But when you start debug mode, Visual Studio shows you a window saying

that your application could not start because MSVCR80D.dll was not found.

It also says that reinstalling your application may solve the problem.

(I apologize for the lack of the proper english message. Our VS2005 is in

italian, and even translating the message to my best wouldn't produce the

exact english version of it)

A misleading error message, don't believe a word it says.

The problem occurs because, on FAT32 partitions, the file

"...\Debug\[YourApp].exe.embed.manifest.res" is generated before the

corresponding source counterpart.

Manually deleting the above file, in fact, and building the app again (not a

Clean rebuild), works, in that now the source file from which to obtain

"[YourApp].exe.embed.manifest.res" is already there.

However, if you dislike the idea of manually deleting a file every time, there

is a much better fix.

Go to: "Project Properties -> Manifest Tool -> General"

and enable: "Use FAT32 workaround"

I hope this spares a headache to other people in future.

Regards,

Ciao ciao : )

"

Friday, July 04, 2008 6:54 AM by Jason Armstrong

# re: MSVCR80D.dll not found

The solution instantly worked for me. Thank you for saving me from several hours of frustration!

Wednesday, July 30, 2008 5:09 PM by Melik

# re: MSVCR80D.dll not found

Thanks.

This was bugging me a lot.

The second solution is pretty simple.

Saturday, September 13, 2008 9:49 AM by sai krishna

# re: MSVCR80D.dll not found

// this (hua)section is added by Someone...

var bFAT32 = wizard.FindSymbol("FAT32");

var MFTool = config.Tools("VCManifestTool");

MFTool.UseFAT32Workaround = true;

// end of (Someone)section

----From Michael_den ---In Chinese forum...

>>>>>>scripts\xxxx\default

Insert them to the place after 142 row, not 138

Others following the way he said.

var bFAT32 = wizard.FindSymbol("FAT32");

This should be added.

Or there will be another problem...

Monday, December 01, 2008 2:44 AM by Plr0201

# re: MSVCR80D.dll not found

Thank you for providing correct solution.

Tuesday, December 16, 2008 9:45 AM by Raj

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker