Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Debuggin VS 2010, UWS, and MVC3 issue
draskin
#1 Posted : Friday, September 30, 2011 2:35:44 PM(UTC)
Groups: Member
Joined: 9/30/2011(UTC)
Posts: 2
Location: Minneapolis, MN

Was thanked: 1 time(s) in 1 post(s)
Hello, I am new to UWS and am trying to run an MVC3 sample I have here.

I can run it just fine outside of the debugger with UWS. I would like to debug using VS2010 however.
I used the Web server replace utility to switch to UWS.
I also put C:\Program Files\UltiDev\Web Server\UWS.InteractiveServer.Clr4AnyCPU.exe in Start External Program on the Web tab (there is no Debug tab).

VS2010 complains "Unable to connect to Visual Studio Development Server".

UWS - Interactive User window comes up and starts clocking, but nothing happens. I can input Path to application's physical folder and start it manually, but am still not debugging through it.

Please help,

thanks,
daver
Ultidev Team
#2 Posted : Friday, September 30, 2011 4:59:07 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Daver!

We have just created a sample ASP.NET 4 application project, ran the UWS Visual Studio Web Server Replacer utility and had no trouble starting the application in VS debugger, which ran UWS Interactive Host, and hitting the break point in the code.

When you replaced standard Visual Studio web server with UWS Interactive Host, you don't need to use "External Program" feature of the Visual Studio.

Please see attached screenshot for our test project Web settings.

Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): Web Settings in Visual Studio for UWS Interactive Host as web server.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
draskin
#3 Posted : Monday, October 3, 2011 8:40:10 AM(UTC)
Groups: Member
Joined: 9/30/2011(UTC)
Posts: 2
Location: Minneapolis, MN

Was thanked: 1 time(s) in 1 post(s)
I did exactly that and am getting the following:

UltiDev Web Server - Interactive User pops up with a message box titled Error :-), saying: Unknown parameter "nodirlist".

After a short while VS 2010 has a message box: Unable to connect to the Visual Studio Development Server.

Is there some difference in our environments?

thanks,
daver
1 user thanked draskin for this useful post.
Ultidev Team on 10/3/2011(UTC)
Ultidev Team
#4 Posted : Monday, October 3, 2011 9:21:49 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Dave.

"nodirlist" is a parameter we didn't know about - it's never mentioned in the WebDev.WebServer.exe parameter list (see attached). If you know how to make Visual Studio not to supply it, you should be able to debug w/o a problem. We will certainly fix this in the next build. In a few days we will send you a pre-release build 11 with the issue fixed so you could make sure it's truly gone.

Thank you much for reporting the problem.

Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): DevServer parm usage.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#5 Posted : Monday, October 3, 2011 9:39:19 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Great, I'll check out build 11 when it comes!
daver
Guest
#6 Posted : Monday, October 3, 2011 1:22:20 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Ok, got version 11 - debugging works now, thanks!!

A couple of observations - may or may not be as intended operation:

1. I have Chrome installed. When I start the debugger, IE9 and Chrome both pop up. Both display the start page.
2. IE9 seems to be the anchor for the debugging process - if I close IE9, both the debugging session and the web server go away.
3. If I close Chrome, everything still runs in debug.
4. I can stop debugging in VS2010 and IE9 and the web server stay running.
5. Starting another debug session will open a new tab / window in Chrome.

Is this intended operation?

In contrast, when I debug with the built-in web server, only Chrome pops up.

Thanks again for the quick fix!
daver
Ultidev Team
#7 Posted : Monday, October 3, 2011 1:41:40 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Dave,

The reason for two browsers starting is that one (IE) is started by us and another (system default browser) is started by the Visual Studio. The reason there is a difference in behavior between UWS Interactive Host is that for now defaults are different from and WebDev.WebServer. In the next iterations we will change defaults for UWS Interactive Host when it runs as "WebDev.WebServer", so it will probably run as if it had "/BROWSER=nobrowser" and "/dirbrowsing=yes" in its command line. This will make it more like WebDev.WebServer.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.