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

Notification

Icon
Error

Setting a port in a DNN development
Eklipse
#1 Posted : Monday, June 11, 2007 10:10:38 AM(UTC)
Groups: Member
Joined: 6/11/2007(UTC)
Posts: 2

Hi, I'm debugging an DNN application. Ultidev has more than excellent, but I found that every time I started an Ultidev instance he gives me an different port number. Dotnetnuke registers the URL address in the database (PortalAlias table I think) where I have to put something like http://localhost:1234.

Is there a way to tell Ultidev that the application will run on localhost:1234 ?
I cannot register the DNN app, because a problem (mutex could not be created commented in the forum).
Thanks in advance

Eklipse
Ultidev Team
#2 Posted : Monday, June 11, 2007 10:25:41 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, Eklipse.

If we understand you correctly, your project debugging settings look something like described here, and the issue is to make debugger run on the same port every time you hit Debug | Run in Visual Studio. If that's the case, you can modify your command line to include the port number. Here's how UltiDev Cassini can be started in command line mode:
Code:
UltiDevCassinWebServer2.exe /run <PhysicalAppFolder> [<defaultDocument>] [<port> | 0] [<browser path> | nobrowser]
For example, your command line could look like this:
Code:
/run "C:\DNN" default.aspx 1234
where "1234" is the port number, and "C:\DNN" is the path to the DNN application folder.

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.
Ultidev Team
#3 Posted : Monday, June 11, 2007 10:34:36 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)
Regarding mutex issue, the most common reason for this is an application being registered with UltiDev Cassini at port <1234> and also attempted to be started in debugger on the same port <1234>. ASP.NET application does not have to be registered with UltiDev Cassini in order to be started using Cassini EXE in command-line mode. Moreover, if application is registered with UltiDev Cassini, it cannot be started using Cassini command-line EXE on the same port. If one wants to debug registered application, he/she will need to attach debugger to UltiDev Cassini service process.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Eklipse
#4 Posted : Wednesday, June 13, 2007 5:32:09 AM(UTC)
Groups: Member
Joined: 6/11/2007(UTC)
Posts: 2

Hi, here is my notes. The scenario is XP SP2+VS2003+Web Cassini for Net 1.1:
The debugger starts a UltiDevWebCassinWebServer.exe. If there is an instance of this exe, Could not create Mutex error is returned.
Note that this error raises no matter the application is registered or not.
My steps were to register the application. Before start the debugger, I simply shutdown UltiDebWebCassinWebServer.exe, the debugger will create the service again.
If I close de Internet Explorer in debug mode, the service automatically shut down too.
If I want to navigate the site without debugging, I have to restart the UltidevWebCassinWebServer.

The command line worked fine, thanks.
Thanks for your help!


Ultidev Team
#5 Posted : Thursday, June 14, 2007 6:21:34 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)
We are sorry for the delay with the reply - for some reason the notification email has not arrived and we didn't see this post until now.

The mutex issue is usually caused by attempting to host multiple sites on the same port. Usually it happens when there's an application registered with Cassini on port XXXX, and a command line instance of the Cassini is also trying to launch a web site on port XXXX. It's not necessary to shut down windows service in order to run the command line Cassini - all you need to ensure is that there are no port conflicts between the service and the command line Cassini instances.

If you continue having mutex problem could you please send us the contents of your Cassini Metabase file located in "C:\Documents and Settings\All Users\Application Data\UltiDev\Cassini\" folder, along with the debugger command line you are using in the Visual Studio?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#6 Posted : Tuesday, March 8, 2016 3:05:04 AM(UTC)
Groups:

Message was deleted by a Moderator.
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.