Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JCJacob Cordingley30/06/2009
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."
Source="App_Code.xtochuen"
ErrorCode=-2147221164
StackTrace:
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)
InnerException:
**********************************************************************************************************************************************
I have tried
CreateObject("SwDocumentMgr.SwDMClassFactory", "");
new SwDocumentMgr.SwDMClassFactory();
both give me the same 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."
Source="App_Code.xtochuen"
ErrorCode=-2147221164
StackTrace:
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)
InnerException:
**********************************************************************************************************************************************
I have tried
CreateObject("SwDocumentMgr.SwDMClassFactory", "");
new SwDocumentMgr.SwDMClassFactory();
both give me the same error