Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. Also make sure that WebAii Test Execution client is properly installed. Check Tools->Manage Add-ons.
13/12/2010 1:52:52 PM-- 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()
try the old version 2010.2.830 ... can see the add-on mscoree.dll
but with version 2010.3.XXX , the add-on is gone.
please help for the issue.
15 Answers, 1 is accepted
Hello Allan,
As of the Q3 release the add-ons are no longer used, so you will no longer see it appear in the described location. Please check the following on your test:
- If you are running this on a server, please review our Video Blog on the subject.
- If you are using a 64-bit version of Windows, please do the following:
- Load the project in VS
- Right-click the test project that contains the test
- Choose properties
- Click the Build tab
- Change Platform Target: from Any CPU to x86
- Save the changes and re-test execution
- If the above, does not help, please do the following:
- Reset IE to default settings
- Re-configure IE per our documented settings (click the + on the left column next to Configure your browser, then choose your version of the browser to see configuration settings.
This will make sure it is not launching the 64-bit version of IE (which we are not compatible with).
Please let us know if you are still experiencing issue after doing the above..
All the best,
Keaegan
the Telerik team

Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
05/01/2011 2:42:06 PM-- 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)
at iQtest.SilverlightUtility.iBrowser.launchWebApp(String url, String BrowserTypeString, String Size) in C:\myDeV\iQtest\iQtest\SilverlightUtility\SilverlightUtility.cs:line 1833
Which I am using
Manager.LaunchNewBrowser(
BrowserType .InternetExplorer ); or
Manager.LaunchNewBrowser(
);
all has problem .
my code like :
public
class
iBrowser : BaseTest
{
//private SilverlightApp sApp;
private
Settings Settings = GetSettings();
private
FrameworkElement BusyIndicator;
/// <summary>
/// init browser
/// </summary>
public
iBrowser()
{
}
void
InitializeBrowserSettings(String BrowserTypeString)
{
try
{
switch
(BrowserTypeString.ToLower())
{
case
"iexplore"
:
Settings.DefaultBrowser =
BrowserType.InternetExplorer;
break
;
case
"firefox"
:
Settings.DefaultBrowser =
BrowserType.FireFox;
break
;
case
"safari"
:
Settings.DefaultBrowser =
BrowserType.Safari;
break
;
case
"chrome"
:
Settings.DefaultBrowser =
BrowserType.NotSet;
break
;
default
:
iLog.Errorlog(
"Wrong Browser type"
);
break
;
}
iLog.log(
"Browser Type: "
+ BrowserTypeString);
Settings.EnableSilverlight =
true
;
//Settings.Browser = BrowserExecutionType.InternetExplorer;
Settings.ClientReadyTimeout = 50000;
Settings.ExecuteCommandTimeout = 60000;
Settings.ExecutionDelay = 100;
Settings.WaitCheckInterval = 500;
Settings.SimulatedMouseMoveSpeed = 0.5f;
Settings.EnableUILessRequestViewing =
false
;
Settings.QueryEventLogErrorsOnExit =
false
;
Settings.EnableScriptLogging =
false
;
Settings.AnnotateExecution =
true
;
Settings.AnnotationMode =
AnnotationMode.All;
//Settings.BaseUrl = "http://www.google.ca/";
Initialize(Settings,
null
);
Settings.UnexpectedDialogAction =
UnexpectedDialogAction.DoNotHandle;
iLog.log(
"Initialize finished"
);
}
catch
(Exception ex)
{
iLog.Errorlog(
"Initialize failed!"
);
iLog.Errorlog(ex.Message);
iLog.Errorlog(ex.StackTrace);
}
}
/// <summary>
/// close function
/// </summary>
public
void
close()
{
base
.CleanUp();
}
/// <summary>
/// initial Web browser , attach to application
/// </summary>
/// <param name="url"></param>
/// <param name="BrowserTypeString" ></param>
/// <param name="Size" ></param>
public
void
launchWebApp(String url, String BrowserTypeString, String Size)
{
InitializeBrowserSettings(BrowserTypeString);
try
{
if
(Manager.Current.Browsers.Count > 0)
{
ActiveBrowser.NavigateTo(url);
}
else
{
this
.killBrowser();
Manager.LaunchNewBrowser(
);
//Manager.LaunchNewBrowser(BrowserType .InternetExplorer );
switch
(Size.ToLower())
{
case
"minimize"
:
ActiveBrowser.Window.Minimize();
break
;
case
"maximize"
:
ActiveBrowser.Window.Maximize();
break
;
default
:
break
;
}
ActiveBrowser.NavigateTo(url);
}
//ActiveBrowser.Window.Maximize();
SilverlightUtil.iActiveBrowser = ActiveBrowser;
SilverlightUtil.iActiveBrowser.AutoDomRefresh =
true
;
SilverlightUtil.iActiveBrowser.AutoWaitUntilReady =
true
;
}
catch
(Exception ex)
{
}
}
}

However on deploy machine which is WinXP + Visual 2008 working fine.
Please help.
Thanks,
Update : I think the issue only happen on Windows 2003 OS , I tried my uitility on Windows 2008 R2 it working fine.

I apologize for the delay getting back to you. I took your code and ran it without any problems, though I had to guess and some of the utility functions.
this.killBrowser(); - is not defined in your code sample
Have you configured your server per this documentation?
Cody

ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure intnernet Explorer is propery installed and you are able to launch it.
The browser comes up but it doesn't navigate to the website. Enhanced Security is turned off and I ran through all the server configs in the documentation. It seems to be related to windows 2003 R2
I am sorry you are running into this problem. Which version of IE are you using? We only work with IE7 and above. What IE add-on's do you have? There are a few add-ons that are known to conflict with Test Studio. As an experiment try disabling all IE add-ons and see if that fixes the problem. If it does you can then re-enable them one at a time to determine which one is the culprit.
Best wishes,Cody
the Telerik team

Which version of IE are you using on your Windows 2003 R2 machine?
All the best,Cody
the Telerik team

We need to get some additional diagnostic information to continue troubleshooting this problem. Would you please install Test Studio on the problem machine (you can run it in Trial mode without having to purchase it). Then follow these steps:
1) Create a test project
2) Add a web test to the project
3) Open the web test (you don't actually have to add any test steps to it)
4) Click the Help tab
5) Click Record
This will cause Test Studio to try to launch our recorder in a diagnostic mode. A Recording Output window should open and log the steps we take to launch IE and connect to it. I need the output from that log window.
Cody
the Telerik team

var settings = GetSettings(); settings.Web.EnableSilverlight = true; settings.Web.KillBrowserProcessOnClose = true; settings.Web.DefaultBrowser = BrowserType.InternetExplorer; //settings.ExecutionDelay = 1000; Initialize(settings, NUnit.Core.TestContext.Out.WriteLine); Manager.LaunchNewBrowser(); // Manager.LaunchNewBrowser(BrowserType.Chrome); ActiveBrowser.NavigateTo("www.google.com");
Any news?
PS Any chance of getting previous versions of webaii (I've download the latest today) as I think these worked ok? If so please can you send the URL. Thanks.

I found the problem what I was faced , and the reason is missing "Primary Interop Assemblies" which I didn't install VS on the execution machine.
Solution : copy "Primary Interop Assemblies" from other machine which has VS installed and GAC it, problem solved.
BTW, I am using latest Webii now, it smooth. :)
Thanks guys for the support.
All the best.
Allan

Thanks for the quick reply Allan, but this is happening on a windows 7 dev machine with vs2010 fully installed.
@Telerik: any thoughts?
John

Thanks all for your help.
Perhap I should RTFD :-)