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

Notification

Icon
Error

How to set the Port Number of web app for Debugging
wizzzy
#1 Posted : Friday, February 20, 2009 5:12:01 AM(UTC)
Groups: Member
Joined: 2/20/2009(UTC)
Posts: 4

Thanks: 1 times
Hi
Ok just started working with the Cassini Web server and visual studio 2005 I'm trying to figure out how to force the registration of the web services/App to a particular port.
Cause at the moment evertime I start the debbuger the port changes. Which means I have to got into the web service client (which is on another machine) to change the end point URL everytime.
At the moment I'm trying to debug the Web services.

Also any further information on using the CassiniConfigurationService.asmx , that seems to be something that can solve this problem but I'm not too sure how to go about doing it and I don't seem
to be able to find any further information about it.

Thanks
Ultidev Team
#2 Posted : Friday, February 20, 2009 6:26:20 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 there!

When you are debugging, we assume you run UltiDev Cassini web server in command-line mode, which means your debugger starts UltiDev Cassini Web Server using command looking something like
Code:
"C:\Program Files\UltiDev\Cassini Web Server for ASP.NET 2.0\UltiDevCassinWebServer2.exe" /run "<your project folder>" Default.aspx
If you append port number to that command line, you UltiDev Cassini will host your application on that port every time you start debugger. Here's the help for UltiDev Cassini hosting an application in the command line mode:
Code:
UltiDevCassinWebServer2.exe /run <PhysicalAppFolder> [<defaultDocument>] [<port> | 0] [<browser path> | nobrowser]


Just to make it clear, you don't need to register an application with UltiDev Cassini for the scenario described above. One registers an application to have it hosted by UltiDev Cassini running in the service mode. Depending on your scenario, you may want to do that too. In that case you would register the application once and then attach the debugger to UltiDev Cassini service process to debug your application.

Please let us know if this information has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
wizzzy
#3 Posted : Friday, February 20, 2009 6:45:06 AM(UTC)
Groups: Member
Joined: 2/20/2009(UTC)
Posts: 4

Thanks: 1 times
Spot on! thats the exact information I was looking for!

Thanks!
Ultidev Team
#4 Posted : Friday, February 20, 2009 6:56:48 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)
Always glad to help. Thank you for using UltiDev Cassini Web Server.

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 (6)
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.