• Delicious
  • Facebook
  • Twitter


Free Guides, Themes, Photo, Games, Movies

JLBN – Setup ASP.net on WAMP

Posted by BN September - 30 - 2008 102 Comments

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 Responses so far.

  1. Omar says:

    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

    • JL says:

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

  2. DuaReX says:

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

  3. DuaReX says:

    BN, I use Wampserver 2.0i and .NET framework v4.0.30319

  4. 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.

  5. Kurashige says:

    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!

  6. Kurashige says:

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


    I cannot find the ASP.NETClientFiles

  7. Kurashige says:

    Do i need to reinstall the .NETFramework?

  8. Kurashige says:

    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.

    • JL says:

      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

      To setup VH, follow this

      To setup DNS, follow this

  9. Kurashige says:

    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.

  10. Kurashige says:

    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?

  11. Kurashige says:

    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.

  12. nico says:

    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

    • BN says:

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

  13. BillyMac856 says:

    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! ;-)

  14. Thanks for the post! It would be cool of there was a way to have a logon script that just parsed Active Directory..

  15. Blue4Ever says:

    Thanks a Lot. After a lot of tries, It finally works!!!!!.

  16. NewbC says:

    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

  17. Ankur says:

    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

  18. Johan says:

    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.

  19. Brian says:

    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.

  20. Jeri says:

    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?

You must be logged in to post a comment.

  • Get Chitika Premium
  • JLBN - Place Your Banner Here
  • JLBN - Place Your Banner Here