Wednesday, September 8, 2010

install ASP.NET on an XAMPP Installation

To go along with Myles Grey's topic of how to run ASP on Windows Vista, I will make a topic on how to install ASP.NET on an XAMPP Installation.




First off, if you have not already, download and install XAMPP, which can be downloaded at www.apachefriends.org

You will then need to download the ASP Installer at SourceForge, so download it, then run it. Choose to of course install it, but you will need to make sure that the install path is set to your Apache directory.

If you have installed XAMPP in C:\xampp\ your path for installing should be C:\xampp\apache\ then hit install, and you are almost done

Now open up C:\xampp\htdocs\apache\conf\extra\httpd-xampp.conf

You will need to add this between the tags
Code: (httpd-xampp.conf) [Select]
#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

AspNetMount /SampleASP "c:/xampp/asp_docs"
Alias /SampleASP "c:/xampp/asp_docs"

Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx

AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"

Options FollowSymlinks
Order allow,deny
Allow from all


#asp.net
Now of course save it, and you will need to restart Apache on your XAMPP Control Panel.

NOTE: Not working? Try this: http://mschat.net/forum/index.php?topic=574.msg8825#msg8825

Then open up C:\xampp\ and create a directory called asp_docs and go into the directory and make index.aspx and put this in it:

No comments:

Post a Comment