Run ASP.NET in Windows XP Home with Cassini Sample Web Server

If you need to learn ASP.NET programming, then the first thing you need to install in your Windows XP Home PC is Cassini Sample Web Server. This article explains what you should have in place before you install the server, and explains how to download and configure it.

Contributed by
Rating: 5 stars5 stars5 stars5 stars5 stars / 5
July 29, 2009
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement

ASP.NET is owned by Microsoft and is an entirely new technology as compared with classic ASP. This technology allows you to write ASP.net server side commands hosted in an IIS-compatible server like Cassini Sample Web Server.

The very good thing about this sample web server is that it is FREE (open source). This is like XAMPP, when we are running local Apache-MySQL-PHP in a Windows-based operating system.

If you have a Windows XP Home computer, you would not be able to install IIS (Internet Information Services) properly since this is only available in Windows XP Professional OS.

It is not recommended that you make drastic tweaks to your Windows XP Home computer just to install and run IIS, because this can be a complicated procedure. Mistakes could ruin the existing Windows XP home configuration and make it unusable.

Instead, the safest way to run ASP.NET is to install Cassini Web Server. This tutorial is all about how to install, configure and prepare your Cassini Sample Web Server in your Windows XP Home computer to create dynamic websites written in ASP.NET. The information contained in this article is very basic and primarily intended for first time learners of ASP.Net programming.

Basic Requirements

In order to avoid incompatibility issues that cause installation problems, it is highly recommended that you have the following:

  • A valid installation of Windows XP Home Computer (Genuine).
  • Fully updated Windows components (your computer should have no pending Windows updates).
  • Microsoft .NET Framework 1.1

If you do not meet all of these requirements, it is hardly to possibly run Cassini Sample web server.

To see that Windows has the Microsoft .NET Framework 1.1 installed, go to: Control Panel -> Administrative Tools, and there you should see these two files:

  • Microsoft .NET Framework 1.1 Configuration 
  • Microsoft .NET Framework 1.1 Wizards

If you did not see them, try this procedure:

Troubleshooting this problem is beyond the scope of this article, and it is recommended that you visit the ASP.NET forums:

http://forums.asp.net/

Installing Cassini Sample Web Server

Below I provide details on how to install Cassini Sample Web Server.

Step 1: Download it by visiting http://www.asp.net/Downloads/archived/cassini/. You can download it to your desktop.

Step 2: Double click the installer on your desktop after downloading. When you double click, there is an installation warning; click “Run.”

Step 3: The installation window is now launched. Just click “NEXT,” and then click “I accept the terms in the license agreement.” Click “NEXT” again.

Step 4: The installer will then ask you where to install the files. If you have an existing XAMPP installation or any local host installed in C:, you can install Cassini Web Server files in the next drive partition, such as E:. This will avoid any potential conflicting issues with running two local web servers at the same time. But use the default location, which is C:, if you have no other local host installation.

Step 5: After you have selected the drive, continue the installation until the installer automatically launches the ReadMe file. In this case the installation has been completed; you can close the Readme file.

Step 6: Go to Control Panel -> Administrative Tools and look for Microsoft .NET Framework 1.1 Configuration. Then go right to it and click OPEN.

Step 7: On the left side, you should see the following:

  • My Computer
  • Assembly Cache
  • Configured Assemblies
  • Remoting Services
  • Runtime Security Policy
  • Applications

Click on “Assembly Cache.”

Step 8: Click “Add an Assembly to the Assembly Cache.” See screen shot below:

Step 9: An “Add to Assembly” will open. Navigate to C:CassiniCassini.dll, if you have installed your Cassini Sample Web server in Drive C; otherwise, select the appropriate path. After the file has been located and selected, click “Open.”

Step 10: In your Windows XP, navigate to the folder where the Cassini Sample Web Server has been installed.

Step 11: Find CassiniWebServer.exe. You can locate it as an application type program. See screen shot below (the CassiniWebServer.exe is highlighted):

Proceed to the next section if all of the above procedures have been followed.

Cassini Sample Web Server Configuration

This is the last step before you can start running your local ASP.NET web server. Right click on the CassiniWebServer.exe and open. The first time you open it, Cassini Sample Web Server asks you for the following information:

  • Application Directory
  • Server Port Number 
  • Virtual Root

By default, the server port number is set to “80” and the virtual root is set to “/”. Now this is the tricky part of the installation. The server port number should not conflict with other existing local web servers installed on your Windows XP Home computer.

For example, XAMPP by default uses port 80 for normal operations. If you are also a PHP developer and use XAMPP for testing, then port 80 is permanently assigned for XAMPP.

Since Cassini Personal Web server uses Port 80 by default, you should change it to another port number in such a way it won’t create port conflict with your existing web servers.

In this case you can use port 8080 for Cassini Web Server and port 80 for XAMPP. This is only true if you have XAMPP installed on your computer. Otherwise, if there are no other local web servers installed, use port 80 as the default. Or if you plan to install XAMPP in the future, port 8080 is the recommended port.

The next tricky thing to be configured is the “Application Directory.” This is a Windows file path specifying where you would like to store your HTML and ASP.NET files. It is recommended that you create a new folder in the same directory where the Cassini Sample web server resides.

So for example, suppose it is installed in E:. I will create a new directory called “ASPNET” where I would like to store my ASP.NET files and other HTML-related documents. Finally, suppose I will use port 8080, since port 80 is already being used by XAMPP. Below is the final configuration screen shot:

Finally the server can be started by clicking “Start.” After clicking on this, you can view the files under:

http://localhost:8080/

So for example, if I save index.htm in the ASPNET folder that I created, I can view that web page using a browser in:

http://localhost:8080/index.htm

Once the Cassini Web Server is started, it will continue to run unless you click “STOP.” See the screen shot below:

You can even run two local web servers at the same time using different technologies as long as they use different ports (port 80 for Apache, and port 8080 for Cassini Web server/ASP.NET).

blog comments powered by Disqus
ASP.NET ARTICLES

- Implementing ASP.NET 4.0 Page.MetaDescriptio...
- ASP.Net Development Tips
- Intro to Sessions in ASP.Net
- Google Maps API Introduction in ASP.NET usin...
- Creating an ASP.NET 3.5 Gridview Image Galle...
- Encrypt QueryString in ASP.NET 3.5 using VB....
- ASP.NET 3.5 Drop Down List Controls
- Connect to Access Database with ASP.Net
- Secure Audio Streaming with ASP.Net and Flash
- Dynamic Sitemap and Navigation in ASP.Net
- Implement Gzip and Deflate Compression in AS...
- Run ASP.Net in Ubuntu with Apache
- ASP.Net Mono Website Contact Forms
- ASP.Net URL Rewriting Methods
- Murach`s ASP.NET 4 Web Programming with C# 2...

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials