SWEA Crashes when browser closes

2 views
Skip to first unread message

mpopkin

unread,
Feb 22, 2009, 5:50:11 PM2/22/09
to SWExplorerAutomation
Hi All,

I have an application where I am connecting to a Cisco VPN through a
browser. Once the connection is established, the browser window
closes by itself. When this happens, SWEA throws an error and no
longer functions unless I restart it.

Is there a way to prevent this or is this a bug in SWEA?

Alex Furman

unread,
Feb 22, 2009, 8:33:47 PM2/22/09
to swexplorer...@googlegroups.com
Which error message do you get?

Mark Popkin

unread,
Feb 22, 2009, 9:59:59 PM2/22/09
to swexplorer...@googlegroups.com
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is
unavailable. (Exception from HRESULT: 0x800706BA)
at SWExplorerAutomationLib.ISWBrowserEditor.StopEditor()
at SWExplorerAutomation.Client.Editors.SceneEditorAdapter.StopEditor()
at bw.j()
at ap.w()
at SWDesigner.Scripting.ScriptRecorderView.SaveAsScript()
at SWDesigner.Scripting.ScriptRecorderView.toolBar_ButtonClick(Object
sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs
e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.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.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Alex Furman

unread,
Feb 23, 2009, 9:05:03 AM2/23/09
to swexplorer...@googlegroups.com
Are there any other IE windows open or the window was the last (IE process
was closed)? It looks like the IE window (Cisco controls probably change the
behavior) doesn't notify SWEA engine about closing.
As a workaround, you can save the script, close SWDesigner, reload script
and then generate the code.

Mark Popkin

unread,
Feb 23, 2009, 9:31:26 AM2/23/09
to swexplorer...@googlegroups.com
Thanks Alex,

I did this and commented out this final line in the generated VB.NET code:

'explorerManager.DisconnectAndClose

It compiles and runs without generating an error now, although I think it
would be useful to have a flag to disable this line when building/running it
from the interface. I had to quickly save out the script before the window
closed itself, otherwise it would not save.

Perhaps building in something to restart the RPC server before or after each
run would do it?
Reply all
Reply to author
Forward
0 new messages