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

Notification

Icon
Error

stop/start Cassini
Guest
#1 Posted : Friday, January 27, 2006 11:46:28 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi,

I like what I see so far from Cassini and am considering deploying it as part of an application that needs to serve asp.net pages while offline on client machines. All good on that front.

My question is: is there a way to configure Cassini so that when it is deployed it does NOT automatically start and run in the background? I would like for my application to manually start it when it needs it and then to kill it when it is finished. I don't want the CassiniServer.exe process running in the background.

I have installed Cassini on my machine and do not see anywhere any sort of option to prevent it from running--please tell me that I'm missing something!

Thanks!

-Casey
Ultidev Team
#2 Posted : Friday, January 27, 2006 1:14:09 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)
Casey,

You can run CassiniServer.exe (or CassiniServer2.exe) as a console application to launch a web application without having to register the appliaction. This way Cassini will start running as a web server and will also launch a web browser pointing to the application. Cassini will quit after user closes the browser.

Here's how you can run Cassini in the command-line mode:
Code:
CassiniServer.exe /run <PhysicalAppFolder> [<defaultDocument>] [<port>] [<browser.EXE>]


Normally Cassini web server runs as an auto-start windows service. If you are absolutely sure that your ASP.NET application will be the only one running under Cassini on that particular computer, you can change Cassini service's startup option from Automatic start to Manual. If you open Services application from Administrative Tools, you will see name is either "Cassini ASP.NET 2.0 Server" or "Cassini ASP.NET 1.1 Server". You can change startup options there. To tweak service startup options programmatically you may need to use .NET ServiceController class.

Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#3 Posted : Tuesday, March 8, 2016 2:48:48 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

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.