This seems a known issue...
But hitting with this exception frequently.
Suddenly a pop window came up with the following exception:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Exception Text **************
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.IHTMLElement'. This operation failed because
the QueryInterface call on the COM component for the interface with IID '{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error:
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).
at Script_assistant.MsHtmlView.MapElements(HTMLDocument mDoc, String parUid) in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 187
at Script_assistant.MsHtmlView.SyncBrowserView(Int32 windowHandle) in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 172
at Script_assistant.MsHtmlView.SyncWithBrowser(Int32 windowHandle) in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 66
at Script_assistant.MsHtmlView.SyncWithBrowser() in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 61
at Script_assistant.MsHtmlView.RefreshBrowser() in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 338
at Script_assistant.MsHtmlView.timer1_Tick(Object sender, EventArgs e) in C:\svn_wet\main\openqa\src\MsHtmlView.cs:line 528
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-
-
-
-
-
-
-
-
-
-
-
-
-
- JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Work Aound:
Whenever I run into this issue , I continued working by restarting all the applications.
Attaching the log file