Resolution for (Exception from HRESULT: 0×800736B1)
Posted by archworx on October 17, 2007
I got this error when I tried to use a C++ DLL, compiled by Visual Studio 2005 SP1, in a web application (ASP.Net 2.0):
“This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0×800736B1)”
This happens due to a lot of reasons, you can check them at: http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx
The reasons in my case were:
1- The target C++ DLL depends on 3 DLLs: msvcm80.dll, msvcp80.dll, and msvcr80.dll version 8.0.50727.762. This is because the SP1 is installed on the development machine, while the production machine has these files but version 8.0.50727.42, thus, I installed Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) on the production machine. You can get it from: http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
2- My bad! I forgot to change the DLL’s active configuration to release, so you always have to check that before you deploy your application.
Jaimie said
Thank you for this post! I have spent hours looking into lots of different complex reasons for the error. When all it boiled down to was the config not set to release…..
Fernando said
thank you so much…. I read tons of articles.. only yours really solved my problem….I appreciate that!!!
Regards…
lookchinz said
My problem happen on C#.net 2005
I don’t sure about Service Pack?? 1.0 or 2.0
Can I load http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en??
Can I have a package for C#.net 2005?
Thx for help.
KID said
Thanks! Saved me a headache!
Seetha said
I have been hitting with this problem for quite some time. Tried installing VC++ runtime didn’t helped me at all. And your advice to make all the dll’s to ‘Release’ mode simply solved my problem. Thanks a lot.
Wasif Ehsan said
You saved me really big headache. Just changing it to Release mode solved my issue. Thanks a lot.
Andy said
Hi, thx for the hint. I uninstalled this package (as so many useless updates on a new Laptop !) but i never though that this would solve the prob…