Cancel
Showing results for 
Search instead for 
Did you mean: 

launch femap from visual studio 2017

Creator
Creator

After a windows/visual studio update i can no longer launch an instance of femap from visual studio 2017 uisng vb#. Has anyone else encountered this?

 

I can still connect to an existing femap process using:

 

Dim app As femap.model
app = GetObject(, "femap.model")
app.feAppVisible(True)

 

however using:

 

Dim app As femap.model
app = createObject("femap.model")
app.feAppVisible(True)

 

throws an exception of

System.InvalidCastException: 'Unable to cast COM object of type 'System.__ComObject' to interface type 'femap.model'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{08F336B2-E668-11D4-9441-001083FFF11C}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).'

 

any help would be greatly appreciated. thanks

 

 

 

5 REPLIES 5

Re: launch femap from visual studio 2017

Siemens Phenom Siemens Phenom
Siemens Phenom

Are you able to launch other programs, such as Excel, Word, etc using "CreateObject"?

Re: launch femap from visual studio 2017

Creator
Creator

Hi,

 

Yes I checked that I could launch excel without issue. The Remote Procedure Call services all appeared to be working.

 

In the end i rolled the windows update back and my program started working again. The pending updates are:

 

• 2018-11 Security Update for Adobe Flash Player for Windows 10 Version 1709 for x64-based Systems (KB4477029)

• 2018-11 Update for Windows 10 Version 1709 for x64-based Systems (KB4023057)

• 2018-11 Cumulative Update for Windows 10 Version 1709 for x64-based Systems (KB4467686)

• Windows Malicious Software Removal Tool x64 - November 2018 (KB890830)

• 2018-09 Update for Windows 10 Version 1709 for x64-based Systems (KB4090007)

 

Is there an alternative or fallback method to launch FEMAP I could add to my program to increase its robustness?

 

Thanks

Will

Re: launch femap from visual studio 2017

Siemens Legend Siemens Legend
Siemens Legend

Hi Will,

 

Thanks for posting this information. It appears you were already on Windows 10 1709 and it was one of the KBs below that contributed to the issue, is that correct?

Re: launch femap from visual studio 2017

Creator
Creator

Yes im using windows 10 version 1709 (OS build 16299.64) and the KBs are the now pending updates so it must be one of those that caused the issue. Not sure i can install one at a time to narrow it down further

Re: launch femap from visual studio 2017

Siemens Legend Siemens Legend
Siemens Legend

Thanks for the info, that will help to narrow things down. Could you reach out to me at patrick dot kriengsiri at siemens dot com? I'd like to follow up on a few more things to see if we can get to the bottom of this.