CST1620 C# / C++ Programming
Lab Week 13

 

First thing that you need to have on your local computer is Microsoft Internet Information Services (IIS).  If you did not install IIS when you installed Visual Studio .NET originally, you need to install it now.  IIS is found on the Win XP Pro CD.  Go into Control Panel, the Add or Remove Programs.  Click on the Add/Remove Windows Components.  Check Internet Information Services (IIS).  Follow the directions.  IIS cannot be installed on the XP Home Edition.  You need to be running Win 2K Pro or XP Pro.

If IIS was installed after the .NET framework was installed, you may have to reregister the .NET framework.  To do this:
Open up a command line DOS box.  Go to this directory C:\Windows\Microsoft.NET\Framework\v1.1.4332  or use whatever the most current framework directory is.  From the command line type aspnet_regiis -i  .  Wait a minute or so while the Framework is being reregistered.

Here is the same thing:

A very common but weird error we get when trying to open asp.net applications using visual studio.net is "Visual Studio has detected that the specified Web Server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services."
 
This will paralyze you particularly if you have been working on some applications for sometime and one fine morning when you open vs.net, you get this message.
 
The resolution is simple, just re-register the aspnet user account.  To do that, type the following from your command prompt:-
 
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i

the above is based on .net 1.1 version. for other versions, just change the version number.

This will install the aspnet user account and register the asp.net with the IIS.
 


For this lab you will need a FTP (File Transfer Protocol) client.  An FTP client allows you to upload and download files to a server.

The server name that you will be using is: kaboom.ridgewater.net
Your username is your Groupwise login ID (lastname followed by 1st 3 characters of your first name).
Your password will be provided by your instructor (student ID number).

You can use any FTP client that you wish to use.  Below is a free FTP client that you can download.

  FTP Client  http://www.wsftp.com

Here is a screen shot of what a typical setup should look like.

 

This web server is running Microsoft IIS (Internet Information Server) which allows executables in some directories to run.  The latest .NET framework and SDK have also been installed on this server.

Please be considerate of your classmates.  Everyone in this course is sharing this server.  Thoroughly test your application on your local computer (laptop) before transferring the files up the server and running them there.

Three directories that can run ASP .NET Web forms have been set up for you. They are named something like app11, app12, app13.  Put your ASP .NET web forms in here.  Do not delete these directories!  These directories have been set up with special permissions to run executables and to both read and write access is available.  If you delete the directories, I will have to manually recreate them for you.

To access your website, the URL is of the following format:  http://lastnamefir.ridgewater.net
Again, it is your Groupwise ID.

Free text editing software for HTML.
  TextPad web site

Exercises
In class demonstration by instructor (no homework - Hurray!)

Exercise 20.1 (10 points)

Write an ASP .NET web application.  For a code base, use one of the existing programs that you have done in a previous week.

When you are finished, upload and test your program on the server for the class.

Exercise 20.2 (10 points)

Write another ASP .NET web application.  For a code base, use one of the existing programs that you have done in a previous week.

When you are finished, upload and test your program on the server for the class.