Please login or register.

Login with username, password and session length

News:

Support MS Chat by putting our userbar in your signature in other forums or your site!


Author Topic: Run ASP on XAMPP  (Read 20522 times)

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Run ASP on XAMPP
« on: October 23, 2008, 05:28:22 PM »
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 :D
 
Now open up C:\xampp\htdocs\apache\conf\extra\httpd-xampp.conf
 
You will need to add this between the <IfModule alias_module></IfModule> 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
<IfModule mod_aspdotnet.cpp>
  AspNetMount /SampleASP "c:/xampp/asp_docs"
  Alias /SampleASP "c:/xampp/asp_docs"
  <Directory "c:/xampp/asp_docs">
    Options FollowSymlinks ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex index.htm index.aspx
  </Directory>
  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
    Options FollowSymlinks
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>
#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:
Code: [Select]
<%@ Page Language="VB" %>
<html>
   <head>
      <link rel="stylesheet"href="intro.css">
   </head>
   <body>
       <center>
       <form action="index.aspx" method="post">
           <h3> Name: <input id="Name" type=text>
           Category:  <select id="Category" size=1>
                          <option>One</option>
                          <option>Two</option>
                          <option>Three</option>
                      </select>
           </h3>
           <input type=submit value="Lookup">
           <p>
           <% Dim I As Integer
              For I = 0 to 7 %>
              <font size="<%=I%>"> Sample ASP.NET TEST</font> <br>
           <% Next %>
       </form>
       </center>
   </body>
</html>

Save, and open up http://localhost/SampleASP now if it was successful, you should see something like:
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
 
Enjoy! :D
Source: http://weblogs.asp.net/israelio/archive/2005/09/11/424852.aspx
« Last Edit: April 29, 2009, 02:05:25 PM by aldo »

Offline Myles

  • Programmer
  • Administrator
  • Loyal Member
  • *****
  • Posts: 1,486
  • 7 > Vista > XP > *nix
Re: Run ASP on XAMPP
« Reply #1 on: October 24, 2008, 06:10:18 AM »
Oh so that works with XAMPP? I understand these instructions better too anyway, lol. Okay, I'll do it tomorrow. Thanks.


Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Re: Run ASP on XAMPP
« Reply #2 on: October 24, 2008, 02:40:12 PM »
Yeah, easy as pie :D

Offline Myles

  • Programmer
  • Administrator
  • Loyal Member
  • *****
  • Posts: 1,486
  • 7 > Vista > XP > *nix
Re: Run ASP on XAMPP
« Reply #3 on: October 24, 2008, 06:32:04 PM »
Meh, it didn't work for me. But we are probably running different versions of XAMPP anyway, considering I had SQLite installed by default and you didn't. What's your Apache version?

Also, it should be noted that you need to change occurrences of c:/xampp/asp_docs inside the configuration file (First code sample) to c:/your/install/path/of/xampp/asp_docs. Also, http://localhost/asp should be an alias for http://localhost/SampleASP if you can get it installed properly.


Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Re: Run ASP on XAMPP
« Reply #4 on: October 24, 2008, 06:35:16 PM »
Did you turn Apache off then back on?

Offline Myles

  • Programmer
  • Administrator
  • Loyal Member
  • *****
  • Posts: 1,486
  • 7 > Vista > XP > *nix
Re: Run ASP on XAMPP
« Reply #5 on: October 25, 2008, 07:04:07 PM »
Yeah, I had it turned off in the process. I didn't just try the one set thing too, I tried heaps of different things.

Edit: Apache won't even start unless I comment out lines 2 and 5. I did check and modules/mod_aspdotnet.so does exist, so it must be either corrupt or not compatible with my version of Apache (2.2).
« Last Edit: October 26, 2008, 01:02:50 AM by Myles »


Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Re: Run ASP on XAMPP
« Reply #6 on: October 26, 2008, 03:20:27 PM »
Thats odd, because I had no troubles turning it off or on O.o

Offline Andrew0493

  • Windows Freak
  • Hero Member
  • *****
  • Posts: 931
Re: Run ASP on XAMPP
« Reply #7 on: November 04, 2008, 07:21:31 AM »
Is it possible to run this with Wamp, I recently switched back to Wamp?

Any help would be appreciated!

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Re: Run ASP on XAMPP
« Reply #8 on: November 04, 2008, 03:16:19 PM »
I am not sure... I don't see why not, but I have never used WAMP :/

Offline antimatter15

  • MS Chat Defender
  • Loyal Member
  • *****
  • Posts: 2,861
Re: Run ASP on XAMPP
« Reply #9 on: November 04, 2008, 04:52:10 PM »
sure, they both use apache
Ajax Animator, a web-based, collaborative animation authoring environment.

Offline Andrew0493

  • Windows Freak
  • Hero Member
  • *****
  • Posts: 931
Re: Run ASP on XAMPP
« Reply #10 on: November 05, 2008, 12:38:24 PM »
ya but the question is HOW? do I do that?

Anyone have an remote idea?

Offline antimatter15

  • MS Chat Defender
  • Loyal Member
  • *****
  • Posts: 2,861
Re: Run ASP on XAMPP
« Reply #11 on: November 05, 2008, 02:16:08 PM »
ya but the question is HOW? do I do that?

Anyone have an remote idea?
Edit the file equivalents. Maybe httpd.conf?
Ajax Animator, a web-based, collaborative animation authoring environment.

Offline Andrew0493

  • Windows Freak
  • Hero Member
  • *****
  • Posts: 931
Re: Run ASP on XAMPP
« Reply #12 on: November 06, 2008, 06:50:48 AM »
Ya doesnt seem to work when I install it into the apache directory. :(

Offline Ian

  • Administrator
  • Loyal Member
  • *****
  • Posts: 6,456
  • Browser: Firefox 3.6
  • Operating system: Windows 7 Home Premium
  • Processor: Intel Pentium 4 with HT
Re: Run ASP on XAMPP
« Reply #13 on: November 06, 2008, 11:10:38 AM »
Yeah, but did you edit the httpd.conf file? or something of that like, and you then need to restart Apache so it can load it ;)

Offline davidbuehn

  • Newbie
  • *
  • Posts: 3
Re: Run ASP on XAMPP
« Reply #14 on: November 27, 2008, 10:40:21 AM »
I got an Error 500
Serverfehler!            Die Anfrage kann nicht beantwortet werden, da im Server     ein interner Fehler aufgetreten ist.     Der Server ist entweder überlastet oder ein Fehler in     einem CGI-Skript ist aufgetreten.     
 Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den  Webmaster hierüber.    Error 500Has anyone an idea?

Regards,
David