Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Not Able to Connect to Appertice Server

1 REPLY 1
Reply
Message 1 of 2
sundaram1087
339 Views, 1 Reply

Not Able to Connect to Appertice Server

Hi

 

I will try to Open the Document without Opening the Inventor.So that am using Inventor ApperticeserverComponent method

 

Am using the following Code But get error while connecting

 

Dim InvAper As New Inventor.ApprenticeServerComponent()

Dim CurrDoc As ApprenticeServerDocument
CurrDoc = InvAper.Open("C:\Temp\Part1.ipt")

 

Am getting the following error while creating the new instance

 

System.IO.FileNotFoundException
HResult=0x8007007E
Message=Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Source=mscorlib
StackTrace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at InventorStandAloneApplication.Form1.Create_ApprenticeDocument() in C:\Shan\Study Documents\InventorStandAloneApplication\InventorStandAloneApplication\Form1.vb:line 315
at InventorStandAloneApplication.Form1.Form1_Load(Object sender, EventArgs e) in C:\Shan\Study Documents\InventorStandAloneApplication\InventorStandAloneApplication\Form1.vb:line 156
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Could You Please suggest the ideas to sort out this issue

 

1 REPLY 1
Message 2 of 2
YuhanZhang
in reply to: sundaram1087

Can you try to set your Target CPU to 'x64' instead?



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report