ASP.net is a web application framework, developed and marketed by Microsoft, that programmers can use to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft’s Active Server Pages (ASP) technology. ASP.net is built on the Common Language Runtime, allowing programmers to write ASP.net code using any supported .NET language.
In this instruction guide for WAMP, we will show you how to install and setup ASP.net for WAMPSERVER in Windows Server 2008. Fortunately, the procedure to install ASP.net is about the same in Windows Vista and XP, so you can use this guide to setup ASP.net in either Windows Vista or XP. In order for ASP.net to work with WAMP, you need more than just mod-aspdotnet
Step 1
We all know that ASP.net replies on .NET Framework, so in order for ASP.net to work, we do need to have .NET Framework (asp1.jpg).
Step 2
If you’re not sure that you’ve already had .NET Framework or not, just go ahead and install it. Right click on installer dotnetfx and select “Run as administrator” (asp2.jpg).
Step 3
In this step, you can not do much but waiting for .NET Framework extract the content to your temporary folder (asp3.jpg).
Step 4
Next, you will be welcome with .NET Framework setup popup (asp4.jpg).
Step 5
Oops!!! if .NET Framework is already installed in your system, you will get the error popup (asp5.jpg). Otherwise, just follow the procedure until finish.
Step 6
Allright, we’ve done with .NET Framework installation, and now is the time to install our main interest ASP.net (asp6.jpg).
Step 7
Next, you will be welcome with ASP.net setup popup, and make sure that you have the right mod for your Apache as seen as “mod_aspdotnet for Apache HTTP Server 2.2″ (asp7.jpg). The best way to optain this mod is to get it through our Downloads menu
Step 8
The installation is initialized and of course a little warning about license agreement (asp8.jpg).
Step 9
Here we go, Terms and Conditions and you pretty much can not do anything else but accept it in order to have ASP.net (asp9.jpg).
Step 10
Next, you will see the windows with default location for ASP.net setup as well as users’ permission to have it installed (asp10.jpg).
Step 11
This step is important, so make sure you do it precisely and correctly. Click on Browse and navigate your way to folder C:\wamp\bin\apache\apache2.2.X with X is the number associated with your Apache version (asp11.jpg).
Step 12
In this step, you have the option to leave it “as is” to install ASP.net for every one, but we suggest that you should opt for “Only for me” (asp12.jpg).
Step 13
When you’re ready, click on Install button to start the installation process (asp13.jpg).
Step 14
This will take a little while to finish the installation process (asp14.jpg).
Step 15
Well, we finally can click on Finish button to finish the ASP.net installation (asp15.jpg).
Step 16
Do not be happy so soon, we did not finish the ASP.net setup process yet. In this step, we need to create the document root, the main location for ASP.net data, and we suggest that you should create a folder inside folder C:\wamp\www and here we have folder ASP (asp16.jpg).
Step 17
In this step, we will open to edit the main configuration file httpd.conf in folder C:\wamp\bin\apache\apache2.2.X\conf with X is the number associated with your Apache version (asp17.jpg).
Step 18
After open this file, we will add a line to enable the file httpd-aspdotnet.conf, and the best place is right after Virtual Hosts (asp18.jpg).
# Virtual hosts Include conf/extra/httpd-vhosts.conf # ASP.net Include conf/extra/httpd-aspdotnet.conf |
Step 19
Use your desire text editor to create a new file called httpd-aspdotnet.conf which is saved in folder C:\wamp\bin\apache\apache2.2.X\conf\extra where X is the number associated with your Apache version (asp19.jpg).
Step 20
With the file httpd-aspdotnet.conf still open in your desire text editor, we will make all necessary setup for ASP.net to work with WAMP, and the first thing is of course to enable ASP.net module (asp20.jpg).
# Load asp.net module
LoadModule aspdotnet_module “modules/mod_aspdotnet.so”
Step 21
In this step, we will setup all extensions for ASP.net (asp21.jpg).
# Set asp.net extensions AddHandler asp.net asp asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo |
Step 22
In module mod_aspdotnet, we must have some certain settings for ASP.net to work and the first thing is to mount ASP.net (asp22.jpg).
# Mount the asp.net /ASP application AspNetMount /ASP "C:/wamp/www/ASP" |
Step 23
After mounting it, we need to map all requests to this folder (asp23.jpg).
# Map all requests for /ASP to the application files Alias /ASP "C:/wamp/www/ASP" |
Step 24
In this step, we will setup all options for ASP.net in folder C:/wamp/www/ASP (asp24.jpg).
# Set asp.net options Options Indexes FollowSymLinks Includes +ExecCGI |
Step 25
After options, of course we need to set permissions for ASP.net (asp25.jpg).
# Set asp.net permissions Order allow,deny Allow from all |
Step 26
Also, setup the default index page for ASP.net (asp26.jpg).
# Set asp.net default index page DirectoryIndex index.aspx index.htm |
Step 27
In this step, we will setup aspnet_client files (asp27.jpg).
# Set aspnet_client files AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4" |
Step 28
Finally, we need to set permissions for ASP.net scripts in temp folder, and of course with all options needed to access that temp folder (asp28.jpg).
# Allow asp.net scripts to be executed in the temp folder Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles" |
Step 29
The moment of true, it’s time to try out this simple ASP.net script (asp29.jpg).
<% Dim I As Integer For I = 0 to 7 %> <font size="<%=I%>"> Simple ASP.NET TEST</font> <br> <% Next %> |
Step 30
Oops, error (asp30.jpg).
The current identity (NT AUTHORITY\SYSTEM) does not have write access to ‘C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files’
Step 31
Don’t panic. If you read the error a little more careful and you’re easy find out that your ASP.net script failed to access temp folder, so just go ahead to create the temp folder as request (asp31.jpg).
Step 31
Now the real moment of true, ASP.net script for WAMP 2 on Windows Server 2008 (asp32.jpg).
CLICK HERE TO DOWNLOAD httpd-aspdotnet.zip