7 Replies Latest reply: Feb 28, 2013 7:42 PM by Donald Hutchins RSS

    'Retrieving the COM class factory' error

      I've written a VB.NET (2010) desktop application that will allow a user to either open an existing QlikView document and refresh its data or create a new QlikView document (both in the QlikView application via the Interop.QlikView.dll). 


      This is the code:


      Dim strReportPath As String = "myTest.qvw"

      Dim myQV As New QlikView.Document

      If Not File.Exists(strReportPath) Then

           Dim myApp As New QlikView.Application

                myQV = myApp.CreateDoc()

           Dim myProps As QlikView.IDocumentProperties = myQV.GetProperties

                myProps.Script = myProps.Script & strLoadScript




      End If

      myQV = GetObject(strReportPath)



      This code works like a charm on my machine.  I have installed it and cannot duplicate the error.  However, when I install it on another machine for testing (via a standard .NET installer), I recieve the 'Retrieving the COM class factory..' error.  Both machines are running the 32-bit version of the Personal Edition 11.0.11440.0 SR2.  I have tried copying the Interop.QlikView.dll locally and even registering it.  Nothing has worked.  Has anyone else run into this problem?  What am I missing?