How to use with Web app .NET

Ranorex Studio, Spy, Recorder, and Driver.
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

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 '' with browser 'IE' in normal mode.", new RecordItemIndex(0));
Host.Local.OpenBrowser("", "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

Re: How to use with Web app .NET

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


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. ... -published ... 5010090817 ... ia-sql-age

Ranorex Support Team