title: Retrieving the COM class factory for component with CLSID when using Microsoft.Office.Interop.PowerPoint
body: <p>I am currently trying to convert a power point slides into images. It comes out this error when I tried to build the app:</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID when using
    Microsoft.Office.Interop.PowerPoint</p>
  </blockquote>
  
  <p>I had tried the IIS "Enable-32 bit application", but it is not working. Below are my code:</p>
  
  <pre><code>using Microsoft.Office.Core;
  using Microsoft.Office.Interop.PowerPoint;
  
  public partial class Admin_powerpoint : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          Application pptApplication = new Application();
          pptApplication.Visible = MsoTriState.msoTrue;
          Presentation ppt = pptApplication.Presentations.Open(@"files/testing2.pptx", MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
  
          var count = 0;
          foreach (Slide slide in ppt.Slides)
          {
              slide.Export(@"asset/images/powerpoint" + count + ".png", "png", 320, 240);
              count++;
          }
      }
  }
  </code></pre>