I have an error when try launch an app using webaii and running test from Nunit. Basically after run test, the IE browser opens but the following error is showed in Nunit and the app does not load in the browser.
WebAii.Samples.TestBaseTests.The_base_loads_application:
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.TypeInitializationException : The type initializer for 'ArtOfTest.Common.Win32.Connector' threw an exception.
----> System.NullReferenceException : Object reference not set to an instance of an object.
I've uninstalled and reinstalled Telerik and IE, and I've configured IEv9 following the steps described in the Telerik's page, but unfortunately does not work.
My current configuration included Windows 7 and IEv9.
Do you have any suggestions to do?
Many thanks.
4 Answers, 1 is accepted
Which version of Telerik Testing Framework you are currently using? We had a bug before where nunit cannot run tests built against 64-bit platform. This bug is already fixed with our current release 2011.2.1117.
When you upgrade your Testing Framework to that release, you should be able to run tests built against 64-bit platform via nunit.exe and tests built against x86 platform via nunit-x86.exe (see screenshot).
Let me know if you need further assistance on this.
Greetings,
Plamen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Hello Plamen,
I downloaded last versrion available in the page and install it. I tried do a basic web test but when I click on "Record" button the following message is showed:
"Unable to launch recorder. Please see log (Help Tab) for more information. Product Version: 2011.2.1117.0".
I'm working with Walter Ariel in the same project. So I need to start using this tool as soon as possible. Any action to take?
This is log generated:
[12/21 12:06:06,Telerik.TestStudio.exe(5796:9)] First trace message from process 5796: "C:\Program Files\Telerik\Test Studio 2011.2\Bin\Telerik.TestStudio.exe"
[12/21 12:06:06,Telerik.TestStudio.exe(5796:9)] First trace message from pool unnamed thread (managed ID = 9, native ID = 2784).
[12/21 12:06:06,Telerik.TestStudio.exe(5796:9),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
[12/21 12:06:07,Telerik.TestStudio.exe(5796:9)] First trace message from pool thread "EnsureActiveBrowser worker" (managed ID = 9, native ID = 2784).
[12/21 12:06:07,Telerik.TestStudio.exe(5796:9),Recording] <>c__DisplayClass9.<EnsureActiveBrowser>b__8() : EXCEPTION! (see below)
Outer Exception Type: System.ApplicationException
Message: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
HRESULT: 0x80131600 (Official ID (if app.) = COR_E_APPLICATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5632)
Call Stack:
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 Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)
Inner Exception Type: System.ComponentModel.Win32Exception
Message: Access is denied
HRESULT: 0x80004005 (Official ID (if app.) = E_FAIL, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16389)
Call Stack:
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
[12/21 12:06:07,Telerik.TestStudio.exe(5796:9),Recording] RecordViewController.BrowserLaunched() : Error launching the recorder. Error : 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.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
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 Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)
[12/21 12:06:14,Telerik.TestStudio.exe(5796:17)] First trace message from pool unnamed thread (managed ID = 17, native ID = 2080).
[12/21 12:06:14,Telerik.TestStudio.exe(5796:17),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
[12/21 12:06:14,Telerik.TestStudio.exe(5796:17)] First trace message from pool thread "EnsureActiveBrowser worker" (managed ID = 17, native ID = 2080).
[12/21 12:06:14,Telerik.TestStudio.exe(5796:17),Recording] <>c__DisplayClass9.<EnsureActiveBrowser>b__8() : EXCEPTION! (see below)
Outer Exception Type: System.ApplicationException
Message: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
HRESULT: 0x80131600 (Official ID (if app.) = COR_E_APPLICATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5632)
Call Stack:
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 Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)
Inner Exception Type: System.ComponentModel.Win32Exception
Message: Access is denied
HRESULT: 0x80004005 (Official ID (if app.) = E_FAIL, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16389)
Call Stack:
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
[12/21 12:06:14,Telerik.TestStudio.exe(5796:17),Recording] RecordViewController.BrowserLaunched() : Error launching the recorder. Error : 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.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
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 Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)

Were you able to understand the problem after seeing the satcktrace?
We are worried about this issue by now as our client has to decide by the end of the week wheter we are going to use TTF to automate their Silverlight application or not based on a proof of concpet.
We are going to reinstall windows and try once more. it would really be appreciated if you could give us an idea on whats going wrong here.
Thanks.
Thank you for the provided log file.
Looking through the stack trace this exception is not thrown by Test Studio. It appears that the Process.Start method has no permissions to launch the process.
System.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
This is something you might need to discuss with your system administrators. Do you have Administrator rights for the machine in question? If not then please try to switch to an account that is a member of the local administrator group.
If this doesn't help please try some of the suggestions that can be found on the internet. During a quick Google search I found these links and there are many others.
http://stackoverflow.com/questions/4601737/system-componentmodel-win32exception-access-is-denied
http://forums.asp.net/t/1289929.aspx
http://forums.asp.net/t/1252204.aspx/1
Please try that and let me know how it goes.
Regards,
Plamen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.