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

Framework crash when navigating to URL

38 Answers 229 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
donovan
Top achievements
Rank 1
donovan asked on 29 Jul 2014, 06:09 AM
We are running Silverlight tests through NUnit on Internet Explorer and we have a test that works perfectly fine on most machines.

However we have one machine running windows 7 Enterprise which seems to just crash when it navigates to a page. We get a c++ runtime error (see attached) and the browser crashes. I have also attached a screenshot showing what runtimes we have installed.

I'm 100% sure its not our application as we can navigate to the page without issue outside the test but as soon as the framework tries to navigate to the page it has issues. It opens the browser without issue and then tries to navigate to the page as soon as the silverlight portion loads it just crashes and we get that error.

As this works fine on all our other machines (also windows 7) I'm guessing its some sort of configuration or set up/dependency issue. I've made sure its in a trused zone and security is low.

I have tried to re-install the Telerik framework (latest version) but it doesn't make any difference. Are there any security settings I should look out for?
Is there some sort of browser extension that gets installed that may be disabled ?

I'm really stuck so any ideas how to move forward are appreciated.

My next step will be to decompile the code and step through to see exactly what is breaking inside the framework, I'll post my findings in this thread.

Thanks

38 Answers, 1 is accepted

Sort by
0
donovan
Top achievements
Rank 1
answered on 29 Jul 2014, 10:50 PM
I hope this helps this is where it fails while waiting for the silverlight control 

public static void WriteCommandToPipe(PipeCommand command, PipeStream pipe, bool waitForDrain)
{
byte[] binary = command.ToBinary();
object pipeSync = PipeCommunication.GetPipeSync(pipe);
lock (pipeSync)
{
pipe.Write(binary, 0, (int)binary.Length);
if (waitForDrain)
{
pipe.WaitForPipeDrain();
}
}
}
0
donovan
Top achievements
Rank 1
answered on 29 Jul 2014, 11:24 PM
Here is the Telerik trace
0
donovan
Top achievements
Rank 1
answered on 29 Jul 2014, 11:55 PM
Searching through your forums I found this which looks similar 

http://www.telerik.com/forums/timeoutexception-on-activebrowser-launchnewbrowser

But the link at the bottom of this page is no longer working.

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/installation-problems/failed-pia-deployment.aspx

Also we are running as administrator on this machine and the UAC is turned off
0
donovan
Top achievements
Rank 1
answered on 30 Jul 2014, 07:34 AM
Another thing Im running inside a VM

Thanks
0
donovan
Top achievements
Rank 1
answered on 01 Aug 2014, 12:45 AM
Can I get some help on this ?

Its definitely the VM works fine on all other machines are there any restrictions or special steps I need to follow to get this working on a VM ?

0
Boyan Boev
Telerik team
answered on 01 Aug 2014, 07:30 AM
Hello Donovan,

Thank you for contacting us.

Please install our latest internal version of Testing Framework and let us know the results.

You can download it from here.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
donovan
Top achievements
Rank 1
answered on 04 Aug 2014, 09:42 PM
Thanks but after installing that we still have the same issue.
0
Boyan Boev
Telerik team
answered on 07 Aug 2014, 01:23 PM
Hi Donovan,

I am sorry to hear you are still experiencing this issue.

In order to assist you best we need to reproduce this behavior on our end. Please grant us a direct access to your application so we can try to replicate the problem and give you a solution.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
donovan
Top achievements
Rank 1
answered on 11 Aug 2014, 12:12 AM
This is not an issue with our application its an issue with the framework running inside a VM. It never gets to our application. 
0
Boyan Boev
Telerik team
answered on 13 Aug 2014, 01:34 PM
Hello Donovan,

I understand that, however we need to reproduce it somehow locally.

We have no problem with some others SL applications in a VM.

We really need an access to your application and your test project. Is that possible?

Have configured the browser according this article?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
donovan
Top achievements
Rank 1
answered on 13 Aug 2014, 11:55 PM
The issue is if I connect to the app on that server from my machine it works fine.

It only fails if you run the Framework inside the VM. Have you tried that ?

I may be able to send you the VM so you can see for yourself but it may be quite large. Alternatively if you can give me access to one of your VM's I can try replicate it there. Can you please give me your email address so I can send you a download link.

Thanks
0
Boyan Boev
Telerik team
answered on 14 Aug 2014, 12:51 PM
Hello Donovan,

I have sent a mail from my mail.

Please send the link there.

Thank you.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 25 Jan 2016, 06:39 AM

Hi, 

Would like to if there was any solution to this. I run into the same problem when i try my application in the VM.

Thanks.

Stephly

0
Boyan Boev
Telerik team
answered on 25 Jan 2016, 02:19 PM
Hi Stephly,

What exactly issue do you experience?

Please give us more detailed information about your scenario (screen shots, video, detailed description) in order to assist you best.

Also what version of Test Studio do you use?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 28 Jan 2016, 05:10 AM
We are running Silverlight tests through NUnit on Internet Explorer and we have a test where it navigates to the Webpage and executes a command to take the Screenshot. The webpage is hosted on a localhost. We are creating a setup project which will have an exe file which calls all these test cases. If i install this setup project on my development machine and runs the exe as an administrator the tests are passed. But if i install the same setup project in a new machine (VM) which has telerik Teststudio, .net 4.6 , silverlight installed, the command times out at the line                " Manager.LaunchNewBrowser(BrowserType.InternetExplorer); ". Please note that i have not installed VS in this new machine. My requirement is i should be able to run these test cases without VS. I'll attach a copy of how the installed folder looks like.
Telerik version is 152.9.23.0. 
0
Boyan Boev
Telerik team
answered on 01 Feb 2016, 11:21 AM
Hello Stephly,

Are there any differences between your local machine where the tests pass and the VM where they fail?

If everything is the same they should work on the VM correctly.

Could you please send us the test project so we can review it?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 02 Feb 2016, 04:34 AM

Hi Boyan,

Only difference is I have not installed Visual studio in the VM machine. 

Regards,
Stephly

0
stephly
Top achievements
Rank 1
answered on 02 Feb 2016, 12:17 PM

Hi Boyan,

If i give it as                

Manager.LaunchNewBrowser(BrowserType.InternetExplorer,false);

it runs into an exception 

System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object
But if i run this on development machine, no such exceptions are thrown. 

Would really appreciate if you can help me on this.

Thanks,
Stephly

0
stephly
Top achievements
Rank 1
answered on 03 Feb 2016, 01:12 PM

Hi Boyan, 

Can you try this at your end. 

Create a simple project . I used your example to create an application which calls www.google.com. Works fine in the development machine. Create a setup project for the same and add the project output of sample solution to this. Try installing the setup in a new machine which doesnt have VS, but has .net4.6 , Telerik test studio. Let me know, if you can run the application and is able to see google site opening.

Thanks,
Stephly

 

0
Boyan Boev
Telerik team
answered on 04 Feb 2016, 12:32 PM
Hello Stephly,

I am not sure if I understand exactly what you are doing.

First you create a sample test project which runs fine and after that you run the same project on another machine?

Could you please give us more detailed information about the second machine what exactly you are doing.

Some Jing video would really help.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 05 Feb 2016, 05:29 AM

Hello Boyan,

I'm attaching the Zip files of the project and the setup file that i created. 

TelerikTest contains the sample project which navigates to Google.com. Setup1 is a setup project for this teleriktest project. 

In the second machine, I wont have visual studio installed. Thats why I'm creating a setup Project.(msi file) and use this to install my exe in the new machine.  If I try to run this exe, (As administrator) it displays only a blank page.
I tried making a Jing video. Unfortunately i'm not able to upload it. 

Thanks,
Stephly

0
stephly
Top achievements
Rank 1
answered on 05 Feb 2016, 05:38 AM
PFA.Could not upload the whole project due to size limit
0
Boyan Boev
Telerik team
answered on 10 Feb 2016, 08:16 AM
Hi Stephly,

I am not sure what this msi does? 

In order to execute our test on the other machine you just need to install Telerik Testing Framework on it. Without this installation you cannot run the tests.

Have you installed it on the second machine?

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 11 Feb 2016, 05:09 AM

Hi,

Yes, telerik framework is installed in the second machine. Is there a way I can send you the entire project. Couldnot do it due to the size limit.

Thanks,

Stephly

0
Boyan Boev
Telerik team
answered on 15 Feb 2016, 01:23 PM
Hello Stephly,

I have a location to your mail where you can upload the project.

Thank you!

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Maurice
Top achievements
Rank 1
answered on 16 Feb 2016, 03:23 AM

Hi,

I'm also working on this, and am able to replicate the same error. Here's what I've tried (using the "getting started" project linked above):

  • Running the project from VS2015 on my development PC - success
  • Running the executable output built from VS2015 on my development PC - success
  • Run on a deployed environment from executable (without VS2015 installed and with no network access, but with Telerik Test Studio installed) - I receive a timeout exception waiting for the browser to connect (event viewer log attached)
  • Running an executable which is otherwise the same but using Chrome - success (i.e. Chrome attempts to connect to Google).

This seems to point to the issue occurring due to IE configuration settings, however since I have followed the guide at http://docs.telerik.com/teststudio/getting-started/configure-your-browser/internet-explorer I am not sure what else could be different between the deployed PC and my development machine.

 

Please advise as to any next steps to find the root cause of this issue

0
Boyan Boev
Telerik team
answered on 18 Feb 2016, 02:37 PM
Hello Maurice,

Thank you for the project.

I am now setting up the environment to test this scenario.

I will update this thread accordingly.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Maurice
Top achievements
Rank 1
answered on 08 Mar 2016, 03:44 AM

Hi Boyan,

Has there been any update to this?

Thanks.

0
Boyan Boev
Telerik team
answered on 10 Mar 2016, 02:25 PM
Hello Maurice,

Unfortunately we cannot reproduce this.

I am now setting a completely new environment in order to reproduce this.

Thank you for your patience.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 28 Mar 2016, 04:05 AM

Hi Boyan,

Were you able to reproduce the issue? Any update on this?

Thanks,

Stephly

0
Boyan Boev
Telerik team
answered on 31 Mar 2016, 06:26 AM
Hello Stephly,

No, unfortunately there is no update about this issue.

We are still not able to reproduce this issue.

When I get further information I will update this thread.

Thank you for your understandings.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 12 Apr 2016, 10:07 AM

Hi Boyan ,

For our project, we have set the policy setting "Set the Turn off Page Zooming Functionality" (Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Internet Explorer) to "Enabled" in IE group Policy Settings. 

We found that, by reverting this settings back to "Not configured" and also by installing Visual Studio in that machine, we are able to fix the issue.

Regards,

Stephly

0
Boyan Boev
Telerik team
answered on 15 Apr 2016, 06:48 AM
Hi Stephly,

I am very happy to hear that!

I have added Telerik points to your account for sharing that information.

Thank you!

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 05 Jul 2016, 03:58 AM

Hi Boyan,

The above solution solved our problem but we had to install Visual studio inorder to make it work. Does that mean it has a dependency on Visual Studio? Is there anything we can do to avoid this dependency? Please let me know. We really don't want VS to be installed as a prerequisite for the application to work. 

Thanks,

Stephly

 

0
Boyan Boev
Telerik team
answered on 07 Jul 2016, 04:24 PM
Hi Stephly,

Thank you for sharing that information.

There shouldn't be any dependency on Visual Studio.

I will pass this information to our developers.

Thank you for the feedback.

Regards,
Boyan Boev
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 12 Jul 2016, 09:51 AM

Steps to Reproduce:

1. Create a console application in the Development machine. Add reference to ArtOfTest.WebAii dll.

2. Write a Program that tries to open up a google Page. (Please use the cs file attached. Was taken from one of the samples found in Telerik Forum )

3. Build the solution and deploy this application in a clean Machine/clean VM which has .net 4.6 and Telerik Framework installed. (Telerik Version 152.9.23.0) Make sure Visual studio is not installed in the Clean machine.

4. Do all the setting that has to be done in IE as per Telerik IE settings

5. Try to run the Test Application in this clean machine  >> Observed that the Google page doesn't open up, and it ends up in a timeout exception

6. Step 5 works if we install VS in this clean machine. 

Boyan, could you please check and let me know if you can reproduce this at your end?

Thanks,

Stephly

 

 

0
Bala
Top achievements
Rank 1
answered on 14 Jul 2016, 04:20 AM

Hi Boyan,

As Stephly mentioned we are unable to run the test (which opens google.com) on a machine which doesn't have visual studio installed on it. Its clear that the visual studio installer puts in some components which is required for running the tests. After installing visual studio, i deleted the install folder under "c:\program files (x86)\microsoft visual studio 14.0" and i was able to run the tests. So the tests depend on some change the visual studio installer makes on to a clean machine (registry, etc).

To get to the root of the issue i stopped at different points during installation, to see which part of the VS installation is required. And I found that during the installation of "visual studio core features", the tests started running. There has been a lot of changes that happened to the GAC and System Registry during this point in time, but i am not able to find which one is really required for running the tests.

Any help in this regard is very much useful for us.

0
Boyan Boev
Telerik team
answered on 15 Jul 2016, 08:19 AM
Hi,

Thank you for the detailed information. I am now setting up a clear environment in order to reproduce this.

I will update this ticket as soon as possible.

Thank you for your understandings.

Regards,
Boyan Boev
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
donovan
Top achievements
Rank 1
Answers by
donovan
Top achievements
Rank 1
Boyan Boev
Telerik team
stephly
Top achievements
Rank 1
Maurice
Top achievements
Rank 1
Bala
Top achievements
Rank 1
Share this question
or