This is a migrated thread and some comments may be shown as answers.

Exception thrown attempting to launch Internet Explorer

6 Answers 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 11 Aug 2011, 01:42 PM

Hello

I am getting this error when I try to run a recorded web test against internet explorer:

System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.

The internet explorer window opens up, but nothing else happens, the pages starys on About:Blank

There are numerous posts on this forum which tell you to disable browser plugins and a few others. is there any definitive place where all the causes are stored in a kb article?

Cheers
Alex

6 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 11 Aug 2011, 03:46 PM
Hi John,
    here's it is:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/recording-problems/unable-to-launch-recorder.aspx

Let us know if you're still unable to resolve the issue.

Best wishes,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
John
Top achievements
Rank 1
answered on 12 Aug 2011, 09:44 AM
The problem was with the running of the test, not the recording.

Migrating the application to another machine seemed to work, though this would have been a lot trickier if migration was not an option.

Either way, it seems like its working ok now.

Cheers
0
Stoich
Telerik team
answered on 16 Aug 2011, 01:10 PM
Hello John,
  I understand your concern. We can still troubleshoot the original issue if you like to. I'm sure we'll be able to get to the bottom of the issue.

Regards,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
Mandy
Top achievements
Rank 1
answered on 04 May 2015, 09:37 PM

I am having a similar problem. When I run/debug my test, a browser window opens, but remains blank (rather than running my test) and I get the following error (in IE10): 

 

Assert.IsFalse failed. There was an error during test setup. System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
   at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

Assert.IsFalse failed. There was an error during test setup. System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
   at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
   at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
   at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

 

Any help would be appreciated. Thanks,

 

Mandy

0
Nilton Cesar
Top achievements
Rank 1
answered on 05 May 2015, 01:09 PM

I have the same error! I am using most recent version. 

The test works well until i try to edit code. In fact io didn't edit anything just give a look to that and all the teste stop work!!

That is the error:

------------------------------------------------------------
'05/05/2015 10:02:56' - Executing test: '03 - Validar filtro central da grid', path: 'Consulta de Clientes\03 - Validar filtro central da grid.tstest.'
'05/05/2015 10:02:56' - Using .Net Runtime version: '4.0.30319.34209' for test execution. Build version is '2015.1.319.0'.
'05/05/2015 10:02:56' - Starting execution....
'05/05/2015 10:03:00' - Detected custom code in test. Locating test assembly: Index.dll.
'05/05/2015 10:03:00' - Assembly Found: C:\Projetos\Index\branches\demanda_19122\Testes\Index\bin\Index.dll
'05/05/2015 10:03:00' - Loading code class: ''.
'05/05/2015 10:03:00' - Failure detected during execution. Details:
------------------------------------------------------------
'05/05/2015 10:03:00' - System.ArgumentException: Seqüência não pode ter comprimento zero.
   em System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   em System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   em System.Reflection.Assembly.GetType(String name)
   em ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
   em ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   em ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   em ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'05/05/2015 10:03:01' - Test completed!

 

Any sugestion?

0
Ivaylo
Telerik team
answered on 07 May 2015, 12:17 PM
Hello,

Most of the problems with the IE browser are described in this article. Please follow the instructions in order to solve the problem you are experiencing.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Stoich
Telerik team
John
Top achievements
Rank 1
Mandy
Top achievements
Rank 1
Nilton Cesar
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or