UltiDev Cassini Web Server for ASP.NET 2.0: The Complete Setup Guide
UltiDev Cassini is a lightweight, high-performance web server designed to host ASP.NET applications without the overhead of Microsoft Internet Information Services (IIS). It is particularly valuable for distributing ASP.NET 2.0 applications as part of desktop application installers or for lightweight development environments.
This guide provides a comprehensive walkthrough for installing, configuring, and deploying applications using UltiDev Cassini Web Server for ASP.NET 2.0. Why Choose UltiDev Cassini?
No IIS Required: Ideal for Windows Home editions where IIS is unavailable or restricted.
XCopy Deployment: Can be packaged directly with application installers (like Advanced Installer or Inno Setup).
Low Resource Footprint: Uses minimal system memory and CPU compared to full-scale enterprise servers.
ASP.NET 2.0 Support: Fully compatible with applications compiled under the .NET Framework 2.0, 3.0, and 3.5. Prerequisites
Before beginning the installation, ensure your target system meets the following requirements:
Operating System: Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows 10, or Windows 11.
Framework: Microsoft .NET Framework 2.0 (or higher, up to 3.5 SP1).
Privileges: Administrative rights are required for installation and port registration. Step 1: Downloading and Installing UltiDev Cassini
Download: Acquire the UltiDev Cassini Explorer installation package (usually distributed as an .msi file).
Launch Setup: Double-click the installer to start the setup wizard. Installation Wizard: Accept the License Agreement.
Choose the installation directory (the default path is typically C:\Program Files\UltiDev\Cassini</code>). Click Next and then Install.
Complete: Click Finish once the installation process completes.
Note: UltiDev Cassini installs both a Windows Service (to host applications in the background) and an interactive management console called UltiDev Cassini Explorer. Step 2: Configuring a New ASP.NET 2.0 Application
Once installed, you need to register your ASP.NET 2.0 application with the Cassini server. Open the UltiDev Cassini Explorer from your Start Menu.
Click on the Applications tab or node in the left-hand panel. Click the Register New Application button.
Fill out the application properties in the configuration window:
Application Name: Enter a unique descriptive name for your application.
Physical Path: Browse to the local folder containing your ASP.NET 2.0 website files (where your web.config and Default.aspx reside).
Virtual Directory Path: Set this to / for root access, or specify a sub-directory name (e.g., /myapp). Click Save or Apply. Step 3: Setting Up Network and Port Bindings
To make your application accessible, you must configure how Cassini listens for incoming web requests.
In the application settings screen, locate the Network Binding section. Listen Mode: Choose how the application should be exposed:
Loopback Only (localhost): Restricts access to the local machine only (best for development or local desktop app backends).
Any IP Address: Exposes the application to the local network or the internet. Port Selection:
Select Specific Port and enter a free port number (e.g., 8080).
Alternatively, select Dynamic Port if your application is launched via an API and handles port discovery programmatically. Save the changes. Step 4: Starting the Web Server
UltiDev Cassini can run applications in two different modes: Mode A: Interactive Mode (For Development)
You can start and stop the application directly inside the UltiDev Cassini Explorer console by selecting your application and clicking the Start button. A browser window can be launched immediately from the console to test the site. Mode B: Windows Service Mode (For Production/Deployment)
For permanent hosting, UltiDev Cassini runs as a native Windows service. Open the Windows Services manager (services.msc). Locate the UltiDev Cassini Web Server Explorer Service.
Ensure the startup type is set to Automatic so it launches when the computer boots up. Step 5: Configuring Windows Firewall
If your application needs to be accessed by other computers on the local network, you must unblock the configured port in the Windows Firewall.
Open Control Panel > Windows Defender Firewall > Advanced Settings.
Leave a Reply