How to use with Web app .NET

Ranorex Studio, Spy, Recorder, and Driver.
cesarolmeda
Posts: 1
Joined: Wed Oct 10, 2012 4:23 pm

How to use with Web app .NET

Post by cesarolmeda » Wed Oct 10, 2012 4:38 pm

Hello
I have this Web App project (1.png) if I choose first page I'm getting to the first test (2.png) where I have some parameters, then I click the button to execute the test. When I run it on Visual Studio works fine, but after the deploy on the IIS and browsing the URL http://localhost/Project and doing the same thing, throw me an error:
"Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application." I'm not using modal dialog, this is the code I wrote in the cs file:

Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://www.ranorex.com/web-testing-examples/vip/' with browser 'IE' in normal mode.", new RecordItemIndex(0));
Host.Local.OpenBrowser("http://www.ranorex.com/web-testing-examples/vip/", "IE", "",false, false);

I'm not running the test through "TestSuiteRunner.Run(typeof(Program), Environment.CommandLine);" beacuse the Environment.CommandLine throw me something like this:
"C:\\Program Files\\Common Files\\Microsoft Shared\\DevServer\\10.0\\WebDev.WebServer40.exe\" /port:57700 /path:\"C:\\Users\\colmeda\\Documents\\Visual Studio 2010\\Projects\\RanoreX\\WebApplication1\" /vpath:\"/\"

Hope you can help me :)
Thanks in advance.
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to use with Web app .NET

Post by Support Team » Thu Oct 11, 2012 7:15 pm

Hello,

This error doesn't come from Ranorex. It seems to be an issue in your application.
I found a few websites where a similar issue is discussed. Maybe you can find a solution for your problem there.

http://stackoverflow.com/questions/5821 ... -published
http://social.msdn.microsoft.com/Forums ... 5010090817
https://openmind.scribesoftware.com/top ... ia-sql-age

Regards,
Bernhard
Ranorex Support Team