Instantiation of TopSolid.Application(Start of TopSolid) throws COM-Exception 80080005
Posted: Thu Jul 07, 2016 9:53 am
Hello,
I am trying to implement a Test-Interface between TopSolid and our PDM-Solution.
I use TopSolid 7.10 and VisualStudio 2012 with VB.NET. (I chose .NET-Framework 3.5 since I read somewhere that this is the recommended Version for accessing the TopSolid-API. But don't know where anymore.)
I followed the API-Description, added the Reference to the TopSolid 6.16 Type Library in my VisualStudio 2012 Project.
The API seems to work. VISTUDIO knows the TopSolid.xxx-Classes.
I started with implementing (nearly just copying ;P) the code from the "Examples\How to start"-Section of the API-Documentation.
First time, it just works. It was so easy. My program started TopSolid, opened a new Document, painted the circle, put the surface on it and gave you the Save-As-Dialogue. I was very happy.
I try it the next day and all I get since then is the COM-Exception 80080005 for the line
TopApp = New TopSolid.Application
Error reads something like(have to translate, have it in German):
System.Runtime.InteropServices.COMException (0x80080005): The COM-Classfactory for the component with CLSID ... couldn't be called because of the following error: 80080005.
at ... line 91
(the line is "TopApp = New TopSolid.Application" as I wrote above)
Most posts and solutions about this error in general seem to be connected to the DCOM-Permissions. But when I use "DCOMCNFG identity" the TopSolid-COM-Object already stands on the recommended "interactive User".
I tried restarting TopSolid manually and do it again, but all that does is sometimes delete my reference to the TopSolid-API so the TopSolid.XXX-Classes are unknown to VISTUDIO again.
Any advice?
Any info I can further give?
I am trying to implement a Test-Interface between TopSolid and our PDM-Solution.
I use TopSolid 7.10 and VisualStudio 2012 with VB.NET. (I chose .NET-Framework 3.5 since I read somewhere that this is the recommended Version for accessing the TopSolid-API. But don't know where anymore.)
I followed the API-Description, added the Reference to the TopSolid 6.16 Type Library in my VisualStudio 2012 Project.
The API seems to work. VISTUDIO knows the TopSolid.xxx-Classes.
I started with implementing (nearly just copying ;P) the code from the "Examples\How to start"-Section of the API-Documentation.
First time, it just works. It was so easy. My program started TopSolid, opened a new Document, painted the circle, put the surface on it and gave you the Save-As-Dialogue. I was very happy.
I try it the next day and all I get since then is the COM-Exception 80080005 for the line
TopApp = New TopSolid.Application
Error reads something like(have to translate, have it in German):
System.Runtime.InteropServices.COMException (0x80080005): The COM-Classfactory for the component with CLSID ... couldn't be called because of the following error: 80080005.
at ... line 91
(the line is "TopApp = New TopSolid.Application" as I wrote above)
Most posts and solutions about this error in general seem to be connected to the DCOM-Permissions. But when I use "DCOMCNFG identity" the TopSolid-COM-Object already stands on the recommended "interactive User".
I tried restarting TopSolid manually and do it again, but all that does is sometimes delete my reference to the TopSolid-API so the TopSolid.XXX-Classes are unknown to VISTUDIO again.
Any advice?
Any info I can further give?