Error Message: System.Runtime.InteropServices.COMException (0x80040154)


When you run your CruiseControl.NET application, you may get the following error message:

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {9DB232DC-50D6-4AAF-BA35-E510E16B2056} failed due to the following error: 80040154.


"SAWHSDK.dll" is not registered properly.


Please make sure that SourceAnywhere Hosted COM SDK is installed properly on your machine. SourceAnywhere Hosted COM SDK can be downloaded at:

If you are using 64-bit Windows OS, please follow the steps below to solve the problem:

1. Install Microsoft .NET Framework SDK v2.0 (64bit). Here is the download link:

2. Locate to the installation directory of Microsoft .NET Framework SDK v2.0 and run the following commands:
C:\Program Files\Microsoft.NET\SDK\v2.0 64bit> corflags /32bit+ "C:\CruiseControl.NET-\server\ccnet.exe"

C:\Program Files\Microsoft.NET\SDK\v2.0 64bit> corflags /32bit+ "C:\CruiseControl.NET-\server\ccservice.exe"

3. Run ccnet.exe.