title: Docker Container with support for Crystal Reports
body: <p>I am trying create a Docker image to host my asp.net MVC app that has a dependency on Crystal Reports.</p>
  
  <p>My dockerfile looks like this</p>
  
  <pre><code>FROM microsoft/iis
  
  COPY ./bin/Release/Publish/ c:\\inetpub\\wwwroot
  
  RUN ["powershell.exe", "Install-WindowsFeature NET-Framework-45-ASPNET"]  
  RUN ["powershell.exe", "Install-WindowsFeature Web-Asp-Net45"]
  
  #install Crystal reports runtime
  COPY Resources/Files/CRRuntime_64bit_13_0_21.msi . 
  RUN powershell.exe -Command Start-Process CRRuntime_64bit_13_0_21.msi -ArgumentList '/quiet' -Wait
  
  </code></pre>
  
  <p>The installing of the CRRuntime_64bit_13_0_21.msi fails. I logged onto my container and ran the msi install from powershell and produced a log. Its very long but here are 2 things that stand out:</p>
  
  <ol>
  <li><p>Error 1904. Module C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\pageobjectmodel.dll failed to register.  HRESULT -2147024770.  Contact your support personnel.
  Action ended 17:20:50: InstallFinalize. Return value 3.</p></li>
  <li><p>Action ended 17:23:56: INSTALL. Return value 3.
  MSI (s) (3C:54) [17:23:56:467]: Product: SAP Crystal Reports runtime engine for .NET Framework (64-bit) -- Installation operation failed.
  MSI (s) (3C:54) [17:23:56:467]: Windows Installer installed the product. Product Name: SAP Crystal Reports runtime engine for .NET Framework (64-bit). Product Version: 13.0.21.2533. Product Language: 1033. Manufacturer: SAP. Installation success or error status: 1603.</p></li>
  </ol>
  
  <p>The first error does not seem to halt the install.</p>
  
  <p>Any suggestions for troubleshooting this are welcome as are alternative ways of creating the image.</p>
  
  <p>Also, just to confirm. The website loads and runs fine. I just can't use any of the features that require the Crystal Reports dependency.</p>