1 Reply Latest reply on Jun 30, 2009 6:44 PM by Jacob Cordingley

    Using SwDocumentMgr.dll in asp get COM error

    Jacob Cordingley
      HI I'm Trying to use the SwDocumentMgr but when it Error


      System.Runtime.InteropServices.COMException was unhandled by user code
      Message="Retrieving the COM class factory for component with CLSID {00AB5D8D-2B8F-416B-9761-92FACC8872BE} failed due to the following error: 80040154."
      at SwDocMgr.getswpreview(FileInfo path, String ConfgName) in c:\Documents and Settings\jacob.cordingley\My Documents\Visual Studio 2008\Websites\PDM(Copy)\App_Code\CL\SwDocMgr.cs:line 37
      at RND_findPart.LinkButton3_Click(Object sender, EventArgs e) in c:\Documents and Settings\jacob.cordingley\My Documents\Visual Studio 2008\Websites\PDM(Copy)\RND\findPart.aspx.cs:line 268
      at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
      at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
      at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
      at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
      at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      I have tried
      CreateObject("SwDocumentMgr.SwDMClassFactory", "");
      new SwDocumentMgr.SwDMClassFactory();
      both give me the same error
        • Using SwDocumentMgr.dll in asp get COM error
          Jacob Cordingley
          I got it
          i found a post from Andrew Maxwell
          and read then search on-line
          to registered a COM dll

          i when to Component services in Admin tools [on the web server] then
          select my computer
          select COM+
          select IIS Out-Of-ProcessPool
          right click Components select New > Component
          click Next
          Select import component(s) that are already registered ( it the second option)

          a list of component is be shown the find
          click Next

          That is it then you can use the SwDocumentMgr.dll on your ASP.new web site