JLBN – Setup ASP.net on WAMP

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.

Note: Even this guide is used for Wampserver, you can apply this method on other wamp package such as Xampp, EasyPHP, so on. Just make sure to select correct file(s) in proper location(s) 😉

[Read more…]

102 thoughts on “JLBN – Setup ASP.net on WAMP

  • March 23, 2011 at 1:53 am
    Permalink

    Hi great tutorial,
    My .aspx files work perfectly, the problem is that I have a site with .asp extensions but this gives an error, any solution for this?

    • March 24, 2011 at 12:41 pm
      Permalink

      Jeri, for asp files, you might have to set it up through Apache:Perl script

  • February 7, 2011 at 11:06 am
    Permalink

    Hey, trying to get this working for local use only. Using WampServer 2 with Apache 2.2.17. I have .NET 4.0 as well as some earlier versions (may this be the issue? I did run the dotnetfx)

    I can get the aspdotnet_module (using the 2.2 version) to show up in the Apache module list, but if I include the auto load in the httpd file, apache will not start. The module shows up in the Apache module list and when I check it to enable, it get the following error:

    “Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started.”

    I’m trying to use this as a local testing server, but for some reason I can’t even get the module to work.

    I’m using Windows 7 x64, I’ve tried running WampServer 2 x86 and x64 with no luck.

  • February 5, 2011 at 8:13 am
    Permalink

    Is it possible to get it to run with the .NET 4.0 Framwork?
    I have v4.0 installed but the error-page tells me that it uses v2.0.

  • February 4, 2011 at 1:24 pm
    Permalink

    Hi
    I did everything exactly as you said and in the test it returns me the code 🙁
    please help

    I use Wampserver 2.0 and .NET framework v4.0.30319

  • January 18, 2011 at 12:08 am
    Permalink

    Great job dude, it worked at onces, only one suggestion,tell peoplo yo can download the file before so the ones to come dont have to type it. LOL

  • August 11, 2010 at 1:51 pm
    Permalink

    Well I’d just like to say a big Thank-You! to you guys for this AWESOME tutorial!…
    I followed your instructions and it installed FLAWLESSLY and without incident! I didn’t even get the permissions error at the end either.

    I’m on a Windows 7 Ultimate x64 machine, I didn’t need to download that .netframework as I already had them all, v2, v3 & 3.5, & v4 in both my x86 & WOW64 directories.

    I installed mod_aspdotnet into the directory you listed (my apache v. is v.2.2.11 instead of your v.2.2.8) that was the only difference throughout the entire tutorial I think.

    I also had to turn on IIS within: control panel\programs – programs and features – turn windows features on/off and “tick” Internet Information Services. Then when I tried to create a site within Visual Studio 2010 it returned this error about: “IIS 6 Metabase and IIS 6 Configuration Compatibility” but I saw those options to tick earlier when I initially turned IIS on, so back into programs and features, within Internet Information Services I had just turned on, I had to “tick” the corresponding boxes IIS Meta. and IIS config. compat. …and now…everything is good to go man!

    What I listed above is exactly what I did to get this going, hopefully that can help point anyone struggling in the right direction to get this going.
    Good luck, And Thanks! 😉

  • August 9, 2010 at 8:50 pm
    Permalink

    Sir after i installed the dotnetfx2.0 i install the mod_aspdotnet for apache. it give me an error c:\wamp\bin\apache\apache2.2.11\ is not a valid path to an installed instance of apache

    • August 10, 2010 at 6:42 am
      Permalink

      nico, check your path again since Kurashige, the poster just before you, install ASP.net w/o any problem

  • August 8, 2010 at 9:30 pm
    Permalink

    my two websites loaded into my wamp are working (the websites were made of PHP) but when I added the asp.net website.

    i can only access the asp.net website through localhost/(folder name of asp.net website)

    but through the internet by typing www.(aspwebsite).com, it always say Internal Server Error.

    • August 10, 2010 at 6:42 am
      Permalink

      Kurashige, you must add VH in file httpd-aspdotnet.conf

  • August 8, 2010 at 7:53 pm
    Permalink

    I set up another virtual host just like my two other PHP site (the one with index.htm and index.php) I just changed the directory path and anything necessary to point to my aspx website saved into www directory.

    back to Internal Server Error beacuse I am pointing the DIrectoryIndex to default.aspx How will I solve this problem?

  • August 8, 2010 at 7:43 pm
    Permalink

    hi, i already have my DNS all set up. the problem is how will i put the asp website (i can access thru http://localhost/aspsite) to access outside thru internet? how will i put it to virtual host? is it the same set up as that of the PHP except the DirectoryIndex will be the *.aspx?

    I have two PHP site loaded into my wampserver. i can access them without a problem though the localhost and through the internet, the problem is I already set up (and it works fine, through localhost/asp.aspx). but I cannot access it through internet.

  • August 6, 2010 at 3:33 am
    Permalink

    Hi I managed to solve the case of internal error ‘thing’. when I access the ASPX site to my localhost\asp I can beautifully see the ASPX website. now, the question is how can I access the ASPX site on the internet?

    When I access it through the internet, the PHP[1] website is the one popping up, and not the ASPX file. The PHP[1] site was configured, correctly, on the virtualhost.

    How will I access the ASPX website through the internet? no problem with the DNS, it is configured correctly.

    is there such thing as serveralias? or do i need to add the site address on the host file, under “C:\windows\system32\driver\etc”???

    Kindly help me out please.

    • August 7, 2010 at 2:45 pm
      Permalink

      Kurashige, you need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP’s and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; also, VH helps to have real domain or even fake/local domain(s) in browsers instead IP’s which are not easy to remember; if dont have real Domain, just skip DNS guide.

      To setup Access, follow this
      http://blog.jlbn.net/?p=21

      To setup VH, follow this
      http://blog.jlbn.net/?p=23

      To setup DNS, follow this
      http://blog.jlbn.net/?p=28

  • August 6, 2010 at 2:07 am
    Permalink

    I can’t seem to find this directory here, is this correct as for the directory path written into your downloaded httpd_aspdotnet.conf

    C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles

    I cannot find the ASP.NETClientFiles

  • August 6, 2010 at 1:50 am
    Permalink

    Same Problem with Jimmy and OOPs

    Here is the error:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    What seems to be the problem here?

    I correctly installed the mod_aspdotnet; downloaded you httpd_aspdotnet file and correctly changed the needed directory path for my asp file. but still get the same Internal Error when I access the site from my localhost.

    When I access the site from an internet I get the default website which is my PHP website. All DNS are configured correctly because I have 2 websites loaded into my wampserver, although they are PHP files. And I can’t mix this asp site with them. This ASP.net website is the only problem I am experiencing.

    Please enlighten my knowledge. thanks!

  • July 31, 2010 at 5:09 am
    Permalink

    Hey, I would like to let you know your website isn’t loading correctly on my apple iphone. Have you any idea if there may be some setting I have to use to make it display correctly? Every thing is out of line.

  • June 23, 2010 at 7:16 am
    Permalink

    Hi
    I did everything exactly as you said and in the test it returns me the code 🙁
    please help

    • June 23, 2010 at 4:53 pm
      Permalink

      DuaReX, what the version of Wampserver and .NET framework are you trying?

  • June 11, 2010 at 5:39 pm
    Permalink

    I am trying to setup the asp.nt for wamp… I tried to follow it perfectly but it isnt working… when I am done my server isnt up unless I comment out

    # Various default settings
    Include conf/extra/httpd-default.conf <— I have to put a # to comment out this line, otherwise my server doesnt load at all

    • June 12, 2010 at 2:13 pm
      Permalink

      Omar, it’s commented out by default and we don’t see anywhere in our ASP.net guide shows to enable that line either

Leave a Reply