Error in CorBindToRuntimeHost

  • Thread starter Thread starter Roy Chastain
  • Start date Start date
R

Roy Chastain

I have code that is getting an error 0x80131700 in CorBindToRuntimeHost.

Can not find that status anywhere.

I BELIEVE that this code is coming from an code that is based on the Installer class, but I am not totally sure about that at this
point.

The error message includes the string error 1001.InstallUtilLib.dll
I expect that InstallUtilLib is part of InstallShield, but again I don't know.

Any help?

Thanks
 
If you have Installer class custom actions, they're not directly supported
by Windows Installer. So when you call them (VS setup projects do this too)
InstallUtilLib.Dll (a MS DLL) acts as a shim. It has to set up a CLR
environment to then call other .NET code to call your Installer classes
using reflection. So that's why CorBindToRuntimeHost gets in the picture.
Compared to directly calling some C++ code in a custom action DLL it's very
complex.

Does this help? Scroll down...
http://blogs.msdn.com/josealmeida/archive/2004/11/08/253831.aspx
 
Phil,
Thank you for your response.

Your description below is exactly what I suspected.

I found the reference to error in the blog that you point me to but the information in that is not meaningful to me for a couple
of reasons.
1) - I don't create the installs.
2) - The installs are created with InstallShield 10.0 and all you do there is tell InstallShield that there is an installer class
that you want called. You do not (at least I understand it) actually manually create any custom actions. If there are custom
actions created, it is all behind the scenes. (It would not be the first time InstallShield has not generated a table correctly.)

We have another install that does use the installer class stuff and it works. Don't know what we did differently.

Needless to say our install guy is not really an install guru.

I guess what I am saying is that we don't really have enough expertise with install to understand what the blog is saying or where
we even need to start looking at what InstallShield generated to see if it did something wrong.

Sure would be nice if some Microsoft person could actually tell us what that error number (0x80131700) means.
 
0x80131700 : Failed to load the runtime
All failure codes are contained in corerror.h in the framework SDK.

Willy.
 
Thanks for the pointer to that module. Did not think to look for includes in there.

Must be somewhat of a catch all error. The problem was actually that we had marked something as having an installer class that
did not. I would have thought the runtime would have loaded and then some sort of class not found error would have been
generated.

Oh well!

0x80131700 : Failed to load the runtime
All failure codes are contained in corerror.h in the framework SDK.

Willy.
 
Hi

Thanks for Willy and Phil's knowledge sharing.
Also I think for installation problem concern with InstallShield, I think
you may try to contact InstallShield support.
http://support.installshield.com

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top