Configuration ASP.NET server (IIS)

Before starting, be sure you have .NET Framework installed.

You can check if any Framework is installed : by exploring C:[WINDOWS]Microsoft.NETFramework

To check version you can read this.

If not installed, you can install it using Windows Update or download the package and install manually.

ASP runs inside IIS (Internet Information Services). Therefore first you should install IIS (under Windows 2000, Windows XP or Windows 2003), of course if it isn’t already installed.
Usually, you can install it from Control Panel / Add or Remove Programs / Add/Remove Windows Components.

Go to Start Menu / All Programs / Administrative Tools / Internet Information Services.
Choose your computer name (local computer) / Web Sites / Default Web Site.

Right click ‘Default Web Site’ and select ‘Properties’. Choose the ‘Home Directory’ tab and type in the ‘Local Path’ the path to where you want your files to be stored. For example ‘D:testaspiis’. This is the root of your webserver, this folder will open when you type http://localhost in your web broswer.
Below, check the ‘Script source access’, ‘Read’, ‘Write’ and ‘Directory browsing’ values. Click OK and now let’s start the server.

Click on the ‘Start item’ button to start the service. Be sure you don’t have any other server running on localhost on port 80, Apache for example.

After the server is up and running you can open http://localhost in your web browser. It should show you an empty list if you don’t have any files in the folder specified on the ‘Local Path’.

You should now be able to open any .asp file and parse it correclty with your browser. Still, you don’t have installed ASP.NET, that means you can’t run any .ASPX files.
To install ASP.NET follow the steps:

Go to the place where you installed the .NET Framework :
‘C:WINDOWSMicrosoft.NETFramework’
there should be a folder similar to ‘v1.1.4322’ (your version of .NET). Note it and let’s continue:

Open the MSDOS Command Prompt (Start Menu / Start / Run and type ‘cmd’).
At the command prompt type (replace ‘vxxxxxx’ with your version):

%windir%Microsoft.NETFrameworkvxxxxxxaspnet_regiis.exe -i

 

After it finishes, you have one more step :

Open ‘Run’ from ‘Start Menu’ and type:

regsvr32 %windir%Microsoft.NETFrameworkvxxxxxxaspnet_isapi.dll

Again, by replacing ‘vxxxxxx’ with your version.
Press OK, wait, and you should receive a confirmation message.

 

To test it, make a test.aspx file in the folder that you typed in the ‘Local Path’ (‘D:testaspiis’ for example) with the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello Dear Friends</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
response.write("Hello Dear Friends")
%>
</body>
</html> 

Open the page with your web broswer using ‘http://localhost/test.aspx’

and check if web browser displays :

Hello Dear Friends

So it works

extradrmtech

Since 20 years I work on Database Architecture and data migration protocols. I am also a consultant in Web content management solutions. I am an experienced web-developer with over 10 years developing PHP/MySQL, C#, VB.Net applications ranging from simple web sites to extensive web-based business applications. When not writing code, I like to dance salsa and swing and have fun with my little family.

You may also like...

Leave a Reply