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?
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of mpopkin
Sent: Sunday, February 22, 2009 5:50 PM
To: SWExplorerAutomation
Subject: SWEA Crashes when browser closes
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?
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)
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Alex Furman
Sent: Sunday, February 22, 2009 8:34 PM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
Which error message do you get?
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of mpopkin
Sent: Sunday, February 22, 2009 5:50 PM
To: SWExplorerAutomation
Subject: SWEA Crashes when browser closes
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?
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.
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Mark Popkin
Sent: Sunday, February 22, 2009 10:00 PM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
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)
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Alex Furman
Sent: Sunday, February 22, 2009 8:34 PM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
Which error message do you get?
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of mpopkin
Sent: Sunday, February 22, 2009 5:50 PM
To: SWExplorerAutomation
Subject: SWEA Crashes when browser closes
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?
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?
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Alex Furman
Sent: Monday, February 23, 2009 9:05 AM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
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.
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Mark Popkin
Sent: Sunday, February 22, 2009 10:00 PM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
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)
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of Alex Furman
Sent: Sunday, February 22, 2009 8:34 PM
To: swexplorerautomation@googlegroups.com
Subject: RE: SWEA Crashes when browser closes
Which error message do you get?
-----Original Message-----
From: swexplorerautomation@googlegroups.com
[mailto:swexplorerautomation@googlegroups.com] On Behalf Of mpopkin
Sent: Sunday, February 22, 2009 5:50 PM
To: SWExplorerAutomation
Subject: SWEA Crashes when browser closes
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?