Could not load file or assembly CabLib

Nov 29, 2010 at 12:21 PM

When I try to execute a bat file with the commands for creating a bootstrapper using the dotNetInstaller 2.0.65 and 20.76  I get this error:

"Could not load file or assembly 'CabLib Version=, Culture=neutral, PublicKeyToken=5c838b77b53f84a0' or one of its dependencies. Thia application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. <Exception from HRESULT: 0X800736B1>"

Initially I installed dotNetInstaller 2.0.50 which worked fine and then upgraded to 2.0.65 and then to 2.0.76. The last 2 didn't work for the bat file.

Here is the bat file:

"C:\Program Files\dotNetInstaller\bin\InstallerLinker.exe" /Output:my_setup.exe /Template:"C:\Program Files\dotNetInstaller\bin\htmlInstaller.exe" /Configuration:myBootstrapperConfig.xml /EmbedHtml:myHtmlSetupFolder /Verbose+

Nov 29, 2010 at 1:37 PM

Are you on a 64-bit or 32-bit Windows, and which edition? Is there a longer stack (more output with the error)?

Dec 2, 2010 at 1:36 PM

I have a 32bit Windows XP Pro sp2. There is no additional error info, just the message above.

Dec 2, 2010 at 10:41 PM

This happens because the build was compiled against the Visual Studio 2005 CRT w/ ATL security update and you don't have this installed (prior versions were compiled against an older version, but Windows update has kicked in). Unfortunately I can't statically link this library (it's a CLR library) to remove the need for it altogether, so you'll just have to install it.

Download and install the appropriate version from

Jan 14, 2011 at 12:42 PM

Thanks! Now it's working.