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

Notification

Icon
Error

Launch web application from CD/DVD
elisacarli
#1 Posted : Wednesday, April 15, 2009 8:57:25 PM(UTC)
Groups: Member
Joined: 4/15/2009(UTC)
Posts: 1
Location: italia

I'm devoloping a redistribuitable C# web application, with Visual Studo 2008.
While configuring Cassini, in Visual Studio setuo, I've found the following string:
/AppLocation="[TARGETDIR]\"

I need to keep all my application files on CD-Rom and make it started from CD/DVD.
How does AppLocation's string change? (I dont' know which is the CD letter on user's machine)
How can I solve this topic?

Thank in advance

Best Regards
Ultidev Team
#2 Posted : Thursday, April 16, 2009 5:24: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)
Elisa,

In the case where application location may change (there could be multiple CD drives on the machine), then best option would be to get UltiDev Cassini installed and create a shortcut icon that will launch both the web server and your application at the same time, without having to register the app with Cassini. UltiDev Cassini can run as a regular (non-service) EXE, take command-line parameters telling where the application is, and host the application until user closes the browser.
If you run UltiDev Cassini executable, "C:\Program Files\UltiDev\Cassini Web Server for ASP.NET 2.0\UltiDevCassinWebServer2.exe", you will see that it has /run mode:
Quote:
UltiDevCassinWebServer2.exe /run <PhysicalAppFolder> [<defaultDocument>] [<port> | 0] [<browser path> | nobrowser]

In this mode the server will host an unregistered application at the moment you need, so you can find out where you app is - either by walking through CD drives in the system or by asking a user - and then launch the app.
This feature is widely used for debugging with UltiDev Cassini, but can also be used in the situation where location of the app is unknown at the installation time.

Please let us know if this information has helped you,

Best 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 3:33:37 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.