in

ArtOfTest, Inc. Community Forums

Discuss and ask questions about ArtOfTest's products.

WebAii.Core.Browser.NavigateTo(Uri uri) throwing HRESULT E_FAIL

Last post 09-05-2008 8:07 PM by admin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-05-2008 11:56 AM

    WebAii.Core.Browser.NavigateTo(Uri uri) throwing HRESULT E_FAIL

     on one of the machines we use for testing, we're starting to get the aforementioned error, but other machines are not getting it and we can't track it down to any specific changes or figure out what the problem might be.  Doesn't help that the machine getting the error is primarily used to write fixtures while the machines that aren't are used to write test scripts (using FitNesse) and run them.

     

    Doesn't happen 100%, but a significant percentage of the time, the navigate command to get to the first page of the application (hosted on the local IIS service) throws this exception (WebAii 1.0 version 1.0.600.0):

     

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
       at ArtOfTest.ShDocVw.WebBrowserClass.get_Document()
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'http://localhost:8895/ProAccess/Client/Login.aspx',ClientId:'Client_3ea5d8ec-d0dc-4423-bae3-6dd9abf715a7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
       at ArtOfTest.ShDocVw.WebBrowserClass.get_Document()
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.
     
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
       at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
       at Medicity.Fixtures.Web.WebAii.WebAiiFixture`1.Navigate(String query) in C:\Source\Proaccess\Externals\Engine\Externals\Medicity.Fixtures\Medicity.Fixtures.Web\WebAii\WebAiiFixture.cs:line 86
       --- End of inner exception stack trace ---

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

  • 09-05-2008 8:07 PM In reply to

    Re: WebAii.Core.Browser.NavigateTo(Uri uri) throwing HRESULT E_FAIL

    Hi Drogo ...

    This issue looks similar to this: http://community.artoftest.com/forums/p/230/887.aspx#887. Given that it is showing randomly, it might be something else. Are you sure nothings changed on the machine or new software was installed on it that might caused this? This issue is related to mshtml and the managed interop assembly that gets installed. Lots of applications use that assembly especially .net apps that access IE DOM...

    On a separate note, we are interested in learning more about how you using are using WebAii with FitNesse. It would be great if you can send us a contact at contact_at_artoftest.com we can chat with...

    ArtOfTest, Inc.
Page 1 of 1 (2 items)
Copyrights © 2008 ArtOfTest, Inc. All rights reserved.