How to make Apache run ASP.NET / ASP.NET 2.0

Don’t ask me why… but i’ve been asked to make Apache run ASP.NET.

IT Worked !

Even worked with ASP.NET 2.0 Site !

Following are the instruction to make Asp.Net work under apache:

– Install Apache 2.0.54

– Install Mod_AspDotNet

– Add at the end of C:\Program Files\Apache Group\Apache2\conf\httpd.conf the following lines

#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> 
  # Mount the ASP.NET /asp application
  AspNetMount /SampleASP "c:/SampleASP"
  #/SampleASP is the alias name for asp.net to execute
  #"c:/SampleASP" is the actual execution of files/folders  in that location

  # Map all requests for /asp to the application files
  Alias /SampleASP "c:/SampleASP"
  #maps /SampleASP request to "c:/SampleASP"
  #now to get to the /SampleASP type
http://localhost/SampleASP
  #It'll redirect
http://localhost/SampleASP to "c:/SampleASP"

  # Allow asp.net scripts to be executed in the /SampleASP example
  <Directory "c:/SampleASP">
    Options FollowSymlinks ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex index.htm index.aspx
   #default the index page to .htm and .aspx
  </Directory>

  # For all virtual ASP.NET webs, we need the aspnet_client files
  # to serve the client-side helper scripts.
  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

– Create a directory c:\SampleASP and insert in it the index.aspx – Restart apache server :
   Start->
 Apache HTTP Server 2.0.54 ->
   Control Apache Server -> Restart
– Open Explorer and navigate to http://localhost/SampleASP/index.aspx If everything worked fine you should get a nice asp.net page working.

 — index.aspx —

<%@ Page Language="VB" %>
<html>
   <head>
      <link rel="stylesheet"href="intro.css" mce_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>

178 Comments

  • Thak you !! Your sample worked nicely...

  • Not working for me. During installation process of Mod_AspDotNet, I get popup messages &quot;Internal error 2908&quot; and &quot;Error 1935. An error occurred during the installation of assembly.&quot; Any ideas?

  • Thanks, your sample works fine.

    I will now try to get my own asp pages back on line with Apache.

  • This installer package does not work with Apache 2.2 Apache renamed thier file sturcture and when I browse/navigate to the installed version of Apache I get an error that the location is not a valid installed version of Apache.

  • works like a charm :)


    Thank you!

  • Its works like Charm!!

  • Fantabulous! It worked smoothly with apache_2.0.58-win32-x86-no_ssl.msi!

    Thanks a lot.


  • I also downloaded APACHE apache_2.0.58-win32-x86-no_ssl.msi and it does not seem to work on mine. I get an error 404 when I try to get the page. Can anyone help me make it work?

  • I just can't get mod_aspdot net to work!!!

    The error I'm getting from the webserver is

    [Mon Jun 19 11:09:41 2006] [error] [client 84.43.73.176] mod_aspdotnet: No AspNetMount URI for request: /Default.aspx

    Despite configuring httpd.conf!

    Any help would be great!

  • How could you modify this to allow ASP to work in two seperate folders?

    say:

    E:\Program Files\Apache Group\Apache2\htdocs
    (which currently works fine, but I want to also have asp pages in the next one too).

    E:\Program Files\Apache Group\Apache2\htdocs\uploads

    I tried aspmounting and aliasing to a different folder and writing that directory code again but no luck, says the page is forbidden. Any help would be appreciated, thanks.

  • it works with apache 2.0.58 too! i can view the page

    however dont' know why i'm not able to use it with visual studio on ASP.NET 2.0 developement

  • this is very cools works really geat... for those who try to install the Mod_AspDotNet and get an error, you get an error because your systems doesnt have atleast 1.1 .NET framework. download it in microsoft and try installing it again... i even try to install it togethere with WAMP SERVER and presto....!!!

  • Will this work on xp home edition? I assumed it would, this is the reason I was searching for this because I have xp home...

    I get

    Forbidden

    You don't have permission to access /index.aspx on this server.

    Message when I try and run that sample aspx page.. I have no idea why, it is the same perms as the index.php file and that works fine...

    Anyone have any ideas why I am getting a 403?

    Thanks

    Jeff

  • asp.net generally works ok with this setting, except atlas -- so far i had no luck with atlas

  • Congratulations Ohad !

    The article is very good, but i try use the Treeview and the menu of ASP.NET 2.0, and thins objects don´t work in Apache..... This problem is resolveble ?

    (Sorry but my English is very bad !!!)

  • It works just make sure that you put every portion of the code in its proper spot in the conf file or else it wont work. This tutorial is very simple if you actually read through your conf file. Just pasting the code as a block wont work.

  • I guess I sturggle trying to figure out why you want to go through all the extra headaches to put something on a platform it was not designed to work optimally. Windows 2k3 is just too cheap to spend all this extra time and $$$ on Apache.

  • asp.net work
    thnks

  • I got it working but no matter what it throws tons of errors in my apache logs as well as Windows Event Viewer... Also it causes apache to restart every 30 minutes.. Doesnt hurt my hosting but it still has a lot of work until its fully stable.. I still enjoy using it and it works very well for DOTNETNUKE... I notice the person above me making comments about why... I will tell you. I host PHP Website mainly but now i can support ASP.NET using 1 port... 80! In a normal situation you would have to utilize another port for IIS but this gets rid of that headache and allows multi platform to be hosted... Also there is another mod out there for Tomcat w/ hosts ASP.NET called GrassHopper. Havent had much time to install and play with it but should be able to use Apache w/ Tomcat and mod_JK to utilize this in a much more stable environment.

    My config:
    - Apache 2.0.55
    - PHP 5
    - ASP.NET mod
    - Windows 2003 Server

  • Im like reaction,, keep getting 404 error "Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. "

    Any help would be great :)

    -Jeff D

  • Haha, it worked perfectly

  • Ok i finally got it working and can view the index.aspx page at the top.. however, when i try to add my other previous aspx project folders in the SampleASP folder all sort of weird parsing errors occur.. even if i put the pages in the root SampleASP directory.. anyone else has this problem or a resolution to it?

    thanks :)

  • I don't know if this method is considered "production ready", but I'm using it on a production server, after having a panic when IIS stopped working, and had to switch my asp.net app to something else. No problems so far! I am a little conserned about security though, as the asp.net code seems to have full SYSTEM priviliges.

  • The downloads for Apache and the mod appear to be broken. When I nav to the sit, that version of Apache and the mod do not exist. Is it just me?

  • OK after some additional searching I found the files in the archives.

    I am currently running Apache 2.0.55, can I apply the mod and .conf coding to this or does it only work with 2.0.54?

  • It works only to display all controls. but It makes errors "CallBack" and "PostBack" to press "Button controls".

  • This is a perfect guide!! Wonderful!! Thanks.

  • anyone got mod_aspdotnet to work with AJAX RC1?

  • It worked for me too! Though some errors in the log.

    cheers!

    moredotnet

  • This kinda worked for me. Some of the controls on my aspx page are not showing, but at I can see the content surrounding them. This could be beacuase I am still a noob to all of this. I installed the apache_2.0.59-win32-x86-no_ssl.msi, and mod_aspdotnet-2.0.0.msi. If anyone has a suggestion I would certanly appreciate it.

  • It kinda worked for me, I'd installed all perfectly, without errors at least, but when I try to run the script provided, it does not show what I think it should have, it just shows Sample ASP.NET TEST one

  • this review is so good..was about to purchase it . thx for your review

  • i tried to run the script but a horrid access denied error 403 always popped up. What settings do i need to tweak on my webserver to have me run the scripts.
    tx
    [--Apache/2.0.58 (Win32),PHP version:5.1.4,MySQL version:5.0.22-community-nt--]

  • Make sure u have a web.config file in the directory or else u gonna have 403 errors

  • It works beauty!!!
    thanks for this!!

  • would this work with newer versions of apache?

  • the urls do not work

  • IT work with apache 2.0.59?

  • I´ve Apache 2.2.3. I can install the mod_aspdotnet, but I can´t start Apache (show the typical msg: the request operation fail!). If I comment the "Loadmodule ...." instruction, starts... This package don´t work with Apache 2.2.3?, what is grong?. Thanks.

  • No... Apache 2.2 has a different module system and since it became "abandonware" it won't work with Apache 2.2!

    An alternative is the Mono project... googleit!

  • I've found mod_aspdotnet on sourceforge.net and it works on Apache 2.2 as well!

  • For Apache 2.2.4, get mod_aspdotnet-2.2.0.2004-snapshot-rev419792.msi. Works just fine for me.

  • Nice Links!!!! I found the stuff elsewhere thanks to the comments, but geeze!

  • OK, got it installed and running. When I request the ASPX page, it gives me a white screen that says

    "Bad Request"

    And thats it. WTF?

  • It works very well. Thanks

  • i'd like to retract my last post about how to make mod_aspdotnet work with apache because further tests shown that it's not. i was so pumped at the initial progress but it failed.

  • i reach error like ( Invalid elf header)..why

  • I'm interested, but there seems to be a problem with your download links pleas check this out...
    michael

  • Thanks for info I really hope this help

  • dosen't work for me by restarting apache service with command promt i get following error ...mod_aspdotnet.so is grabled - perhaps this is not an apache module DSO?....

    i'm running apache 2.2 on windows vista(probably that .net framework is includid)

  • when I write localhost/SampleASP/index.aspx in my navigator, it is loading but it execute nothing, it is thinking, why? what I can do it?

    cuando escribo localhost/SampleASP/index.aspx en mi navegador, este se queda cargandose pero no sale nada, carga y carga y no aparece nada, ¿porque puede ser?

    tengo todo igual que dice arriba

  • Do Anybody have any idea about HOW TO MAKE Oracle Application Server run ASP.NET???????
    Thanks

  • Great post! I did notice that the links to the Apache 2.0.54 and Mod_AspDotNet were broken (may be temporary). Just wanted to give you a heads up.

  • Today I downloaded apache_2.0.59-win32-x86-no_ssl.msi,
    mod_aspdotnet-2.0.0.msi, and performed the steps Ohmad's recipe. For my default.aspx website, I copied over the Personal website that Microsoft gives away with Visual Web Developer 2005 Express (which also uses Microsoft SQL Server Express). After restarting the server, the web page miraculously appeared!

    That's the good news. In reading the edits for the Apache config file, it assembles a string (for .NET 1.1) that looks like c:\Windows\Microsoft.NET\Framework\v1.1.4322\ASP.NETClientFiles\
    The directory contains 3 files: WebUIValidation.js, SmartNav.js, and SmartNav.htm. In the .NET 2.0 tree, also under Framework, there's not an ASP.NETClient directory, nor are there any SmartNav.* files.

    So, my conclusion is that the Microsoft sample must be working because it's a .NET 1.1 compatible application.

    Hope this helps somebody else...

  • So far so good - your configuration instructions worked exactly as described. Will be working with the information you provided to fine tune it to run on my server.

  • Thanks a lot! That was really simple, but I just couldn't seem to find the right info before.

  • Wow, this is very nice, it helped me a lot. I love Apache more than IIS. weeeeeeee!!! Thanks for this, I'll try this out now ^_~

  • Worked first time and like a charm. it was easy to setup and follow. now i can run .asp and .aspx along with .php and .py all on Apache 2.2.4, PHP 5.4.1 and .NET 3.0 Framework..

    Excellant

    Thanks

    Sean

  • Worked like a charm , at the first go. I had to downgrade from apache 2.2.x to 2.0.x to have it up and running. I would appreciate if someone can confirm the mod for aspnet will work anytime soon for 2.2.x apache.

    Now my phpBB3 board will get some nice features courtesy of .NET :)

  • lol, "Don’t ask me why". Same for me...As weird as it might sound I am also in that position right now. I will even have to setup apache listening on one single IP and having IIS run on the others. Also need asp.net for apache so thank you for your info, Ohad!

  • What a hero! Spent ages fiddling around with Apache::ASP and mod_mono/win32 without much joy, then I ran across your little page here and within 5 minutes everything was up and running perfectly. You're a star, thanks :-)

  • Works great with Apache 2.2.6 and mod_aspdotnet-2.2.0.2006 too. Only issue I had was the
    "webform_postbackoptions is undefined" error message when using .NET 2.0.
    The work around is to create an empty file named WebResource.axd in your application directory (i.e. c:/SampleASP in the example above) and everything works great after that.

  • Could someone please show me how to make ajax work with this mod?

  • Help with AJAX and Apache is required. Is it working? If yes what are the application requirements (Apache 2.2.6 ??? and what else). Are there any related webpages / examples on the internet? Any help is reallly appreciated.

  • worked fine along with mysql/oracle10g in xp/home,downloaded mod_aspdotnet-2.0.0.2006-setup.msi from sourceforge, added mod_aspdotnet.so under apache2/module, xyz.apsx worked. thanks for the tips. regards.Manas

  • This is a wonderful guide. I have installed apache with asp support in 10 minutes by the help of this guide.

    Excellent work Ohad.

    -K

  • Does it work fine with AJAX?! because it is giving Javascript error ('Sys' undefined) , even though the ScriptResource.axd httphander tag is added.

    Please help

  • This works great! Can't believe I can run both ASP and PHP like this...

    I installed the latest mod for apache 2.2.4 the only hiccup is I can't go further then the directory tree structure of SampleASP. ie If I have an images sub folder inside here it comes up with a forbidden 403.
    (You don't have permission to access /SampleASP/images/ on this server.)

    Anybody come across this and figured out a work around?

    Thank you in advance.

  • It worked perfectly. I'm new to ASP and I wanted to know does the extension have to ASPX or can it be ASP?

  • It appears that the .msi installer you can download from SourceForget does not support .NET 2.0, only 1.1.

    There is a source file you can download that is suppose to support .NET 2.0, but I don't have the means to compile it.

    Anybody know where I can get binaries for the .NET 2.0 version of mod_aspdotnet?

  • I am unable to install mod_asp.net latest version on apache 2.2.6. I am currently using latest version of Wamp. Any help is highly appreciated.

  • Has anyone else come across this error?
    apache.exe: Syntax error on line 523 of C:/xampp/apache/conf/httpd.conf: API module structure `aspdotnet_module' in file C:/xampp/apache/modules/mod_aspdotnet.so is garbled - perhaps this is not an Apache module DSO?

  • Thanks! Worked like a charm after a permissions error.

  • Hi all

    I have different .net frameworks installed

    and i use v2.0.50727

    What should i do ?

    BR

  • Hello,
    I am experiencing the same issue that 'Quick' had posted regarding Ajax. I get an the dreaded 'Sys' is Undefined error. Has anyone had any success in getting an ajax asp.net site running on Apache? What was the magic bullet?

  • hmm... my take away is that this does NOT actually work. If you are running an overly simplistic application like 'Hello World' you will have success, but once you enter the realm of ajax based applications, forget about it. Asp.Net was built for IIS, as much as people may dislike that fact.

  • Hello,
    I installed it without problems but I have CruiseControl.Net running and when I try to go after dashboard (details on a task) I go to nowhere since the server wants to get into ccnet\dashboard\local\server and so on.. any idea what can I do to solve this?

    thanks for any help1
    Pablo - ekekoATgmx.net

  • I followed Carlos steps for Apache 2.2. It works in Vista after I cleared a permission error. The error said that it didn't have permission to write to "Temporary ASP.Net Files" folder. Actually it just couldn't create the folder. I just manually create it and it works!

  • Note:

    (AspNetMount /SampleASP "c:/SampleASP" ) the above path will need to be set to your actual folder.

    In my case I have C:/wamp/www/SampleASP. Make sure your config follows this correctly.


    Alloy

  • Excellent! Praise at your work.
    Thank you for sharing your knowledge.

    Keep up the great work.

  • Hi,

    -> we are using Microsoft.Web.UI.WebControls Treeview with .net 1.1, Apache 2.2 but when we run appln in IE treeview doesn't work. can you please help to solve the issue? I read other comments but didn't get any idea...

    -> Is there any visual interface like IIS for apache?

  • Hmm, I get the sample to work fine... call up a database and feed variables into a datalist with javascript. However, when I change to an actual directory (substitute the actual directory name with the exact same files I had in the sample) it says it is Forbidden.. 500 error I think.. any thoughts?.. I really dont want to have to put all these asp.net app directories in my C:\ root

    thanks

  • Whats the point of running ASP on apache in Windows iso IIS?

  • I am having trouble getting the mod_aspdotnet.so to work on more than one virtual host application.. I can get it to work if I forward the url to the alias dir (like mysite.com/CartRootDirectory ...then follow link to aspx page) but not like this (CartRootSite.com ...then follow link to directory.)
    I would use url forwarding to fix this (to utilize url masking) but since I also run an email server the forwarding messes with the mx records. The mod works great tho.. I probably am just missing a small detail with the Virtual Hosting Part.. the mod works with a virtual host when I load it like this:
    AspNetMount / "C:/Clients/website/aspapp"
    But not this:
    AspNetMount /aspapp "C:/Clients/website/aspapp"
    /aspapp is my alias for the directory.
    Any Help would be appreciated. Thanks

  • This is an excellent tutorial, im making some adjustments to the shared module, so I can have a server on a pendrive, plug it into any pc and run, +++rep to you

  • Quality post cheers :)

  • Hi all,

    This is an excellent post. It's working perfectly except for one issue. I have different Dot net versions installed and what we use is v2.0.50727. What changes needs to be done in the httpd conf file for this ? Any help would be highly appreciated.
    Regards

  • Thanks a lot for the great post and sample. It really works!!! Thank you!

  • Simple, nice and very usefull article.

    After half an hour of configuration my WAMP Server runs ASP.Net 1 and 2 pages well.

    Excellent !!!!!!

    Thank you for your article. ;)

    D@vid LKS.

  • If you are getting the dreaded sys error with ajax, you have to had a blank file to you app directory called ScriptResource.axd and as mentioned in a earlier post you also need WebResource.axd, then everything works just fine. I am sure these small issues are related to the fact that mod_aspdotnet does not support .net 2.0 officially yet.

  • ok i dont know what to do .
    its work but i need that it will work with *.asp and not aspx . what i need to do that it will work

  • can ajax runs on apache, can any one help

  • THX! very cool, work excelent

  • only works with IE Navigators, with mozilla.
    asp.net code, is dont parsed..

  • This is great, worked for me, but what about regular asp, is there a similar way to get ordinary asp to work as well

  • Great work and lot´s of thanks.

    I´ve tried this solution with the next versions:

    apache_2.0.63 no-ssl
    mod_aspdotnet-2.0.0.2006

    Now I´ve achieved AJAX working with apache. I used www.magicajax.net . To get it working, I putted an empty file with the name WebResource.axd in the app dir and it worked.

  • I cann't get Installar file"Apache 2.0.54" and "Mod_AspDotNet"

  • Please tell me whether ASP.NET work with Apache 5.x

  • Very nice... works fine under xampp in windows vista....

  • i am getting 500 internal server error . any idea wat it is.

  • yaar its working fine

  • Thanks alot for this!

  • Works great. But my ASP menus doesn't work. Any ideas?

  • Absolutely brilliant!

    All evening, I've been looking for ways to extend IIS 5.1 to allow multiple websites to run simultaneously. Finally, I gave up and thought I'd look at Apache. Within 10 minutes, I'd not only installed Apache, but also installed mod_aspdotnet from Sourceforge and tested the sample in my browser!

    And now, 30 minutes later, I've ported over every one of my other .NET websites, into Apache, and they're all running happily as ever!

    Thanks!

  • Hi folks,

    works for me out-of-the-box for a .NET 3.5 ASP.NET webservice on
    * Windows Vista Enterprise 32bit
    * Windows Server 2008 (Standard) 64bit

    I used "apache_2.2.8-win32-x86-openssl-0.9.8g" and the "mod_aspdotnet-2.2.0.2006-setup-r2.msi" from sourceforge.

    cheers, Axel

  • setup gives error while checking the apache root directory..
    dont know why...
    any help????

  • How run aspx files in some directiries of web server, such as /home, /info, e.t.c. But not only with alias Sampleasp?

    Sorry for my English. :)


  • It is actually working fine...

    Just had to reinstall apache in dir resquested by mod_apsdotnet for its own install.

    Having it working on WinXP pro with apache 2.2.8 together with php5.2.6

  • Hi, all
    I am able to run my asp.net1.1 website on apache server. but the problem what i am facing is i am not able to open the pdf file from my page, it is giving error like file Corrupted, where as the file is proper. if any one have any idea plz help me out.

    Thanks a lot
    Mohan

  • It seems that you receive several thank you messages every week.
    You really deserve them!
    Thanks a lot!

  • hey, thanks, works perfect. more power. i can now run asp on my workstation.

  • Server Error in '/asp' Application.
    --------------------------------------------------------------------------------

    The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    Please help :)

  • Fix for my last post:

    I was getting "does not have write access"

    I found that I didnt have a "Temporary ASP.NET Files" folder. I created one and refreshed my page.

    WOOT!!!

    IT worked, no error!

  • Thanks a lot!

    Worked fine

  • Hey Great Work thanks for the contribution.
    Would help people work like who wants to run .Net Web Application on Apache.


    It Works Nicely.....

  • Thanks working on Vista Business with apache 2.2.8

  • asp.net generally works ok with this setting, except atlas -- so far i had no luck with atlas also I love the method in which the writer explains the most labored of concepts effortlessly.

  • Good tutorial,

    For those who are running IIS, they should have to either change the port 80 or configure Apache to listen on someother port by modifying httpd.conf


  • Working smoothly, thanks.

  • Thanks work perfectly with expressions web and apache 2.2 :P

  • It works fine! but How can I run the asp.net 1.1 web application with AjaxPro.dll on the Apache? Thanks in advance.

  • It works great, but how can you make it so it so it can run from anywhere on the server?

  • Hey - You are DA man! This helped me get ASP.Net up and running (C# in .Net 3.5) within a v. short timeframe. Indebted am I, as I have XP home @ home without IIS (What a Bonus that is actually!) and needed to test some .Net stuff for work. Big-Ups brother!

  • I'm create website by asp.net 2.0 (v2.0.50727) And Apache for webserver.(– Install Apache 2.0.54 ,– Install Mod_AspDotNet ) But can't run my website .
    Help me please !

  • it works fine with the sample aspx file but when i renamed it to an asp, it did not work anymore. it works only on file with an aspx extension.

  • the example works... but can't run other asp pages.

  • can anyone help me configuring apache with delphi.net in RAD studio 2007....am able to run with asp.net but i dont have an idea to do with delphi.net.....please if u knw reply as soon as possible...its very urgent

  • how to make the aspx files work on root dir?
    example domain.com/Default.aspx ?

  • 我不知道怎么能实现不用虚拟目录,I do not know how not to achieve a virtual directory

  • thanks for your code. But still i am getting one prob. is i am not able access my database what im using in my asp pages. Is it any further config required to access my database

  • To make AJAX in ASP.NET 2.0 working on your great APACHE websites, just create 2 empty files in website root folder:

    WebResource.axd
    ScriptResource.axd

    Good work guys.




  • Has anyone tried this with Apache CE? Specifically, I want to run asmx web services on a CE 6.0 Embedded device running Apache as the web server.

  • Hey it's works.....:)



    Thanks
    Vm

  • Is there any way to run asp.net web site on Tomcat web server, as done on Apache web server

  • hello!
    does it also work with the framework 3.5?

    cheers geli

  • We r using Webspace and have Server Apache 1.3.41(Unix). How to run .aspx pages with Ajax on this server.

  • It Worked wonderfully , thanks a lot

  • Does it work in Linux?

  • Is this what I would have to do in order to run use / run Ajax on an Apache server?

    Thanks, Dan

  • worked perfectly. I didn't name my directories your way and didn't deal w/ the default install, but well... it was no big thing but a chicken wing to just make your installation work according to my configuration!

    cheers!

    oh yeah...

    Apache2.2.11
    MySQL5.1
    PHP5.2.6

    just so you know :)

  • After try to get it working this what i got

    The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [HttpException (0x80004005): The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +671
    System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +160

    [HttpException (0x80004005): The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +520
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +78
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +257


  • I'm still working with Apache 2.0.x and the old mod
    Now i'm serving ASP.NET in 1.1 , 2.0 and 3.5 flavours.
    Not a single glith from day 1 , and i'm using all kinds of asp controls

    Probably i'll supercede this with some kind of redirect in the near future with a more modern apache setup to dish-out all the asp load to other machine , but so far , this setup works wonderfully for any personal server with low traffic.

  • Hey... this works with .asp or only with .aspx ?

    Thanks...

  • Thanks a lot! I've get it.

  • The links to apache 2.0 and the asp mod don't work for me (404 error). Anybody have links that work?

  • I can not show my reportviewer,this is a result error:

    The requested URL /.../Reserved.ReportViewerWebControl.axd was not found on this server

    I'm using Net Framworks 3.5 and Apache server 2.x on Windows 2003 server

    I need your help please..

  • Let me say that this works perfect.

    I had 3 hours but when I give up I decide read this blog and Do you know what happened? yeah, I found the solution in this blog.

    Thanks a lot to Axel and the owner of this blog.

    Solution: I install apache_2.2.8-win32-x86-openssl-0.9.8g" and "mod_aspdotnet-2.2.0.2006-setup-r2.msi, after that I copy/paste the code in the httpd.conf and created the sample directory. I am using Xampp. Now I can use Asp.Net and PHP with the same web server.

    It is working fine.

  • How to create a virtual host for a ASP.NET application that runs at Apache?

    Could you please help me?

  • thanks for your post.
    i made a try. all ok.
    but what if want to rum more then one web app? it is possible?

  • Excellent, it works! I've got AppServ on my machine and there was no problem. Although I haven't done ASP.NET for ages so my memory of it is rusty. I noticed as well that the Dot Net Framework seems to install by default to Program Files, where as you have C:\Windows. Now the only thing left to do is see if I can get Classic ASP working.

  • Hi, many thanks for the excellent walkthrough!

  • It works for me. But how about excluding alias? is it possible?

  • How can i configure Apache Tomcat 6 for working Asp.net 2005

    AnupMadathil

  • This may also be needed in the httpd file:

    AspNet Files Directories Virtual

    Otherwise, you may get

    mod_aspdotnet: Forbidden, 'AspNet Virtual'is not enabled for: /SampleASP/index.aspx

    in your error log. BTW, it does work on Apache 2.2!

  • I have installed asp on my apache server and copy pasted the code above and it seemed to work. But when i open the asp code on browser, the code i've wroten is shown( with html tags). What can i do to make it work?

  • I have installed asp on my apache server and copy pasted the code above and it seemed to work. But when i open the asp code on browser, the code i've wrote is shown( with html tags). What can i do to make it work?

  • hi..thank u very much... this procedure is perfectly worked for me in apache 2.2...........
    ;)

  • worked like a charm on XP Home SP3

    excellent so i dont need to upgrade to XP pro to use IIS

  • if I run .asp it will show the code

    can I change it if I open .asp file it show as I use .aspx

    thx

  • Nice one, Ohad!

    Has anyone managed to get this working for Classic ASP?

    From what I've read it's not possible with mod_aspdotnet as ASP.net and Classic ASP are two very different beasts...

    I've tried Selisoft's ActiveHTML but can't get it working (yet)...

  • Hi, I´ve got a small problem with asp.net and localhost. It show me this error: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files has not access to write. Can you help me somebody? Thanks

  • Server Error in '/SampleASP' Application.
    The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +671
    System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +160

    [HttpException (0x80004005): The current identity (NT AUTHORITY\SYSTEM) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +520
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +78
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +257


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

  • the solution given by Alexandria is not worked on my windows 7 RTM or i am unable to set permission to write to it.
    please can anyone provide me steps to do so.

  • Hey Bro, Its really Great and working solution for me... Thanks a millions

  • That worked well really.

  • - I installed Apache 2.2.14 on XP (apache_2.2.14-win32-x86-openssl-0.9.8k.msi)

    When I first tried, it did not work. That could be due to a number of reasons.
    (i) I did not specify the port. My Apache is running on 8080 because I am running IIS on 80.
    (ii) I did not re-start my Apache server
    (iii) I did not have the mod_aspdotnet in my instllation module folder.

    I downloaded the mod_aspdotnet (mod_aspdotnet-2.2.0.2006-setup-r2.msi), installed it and re-started my Apache server and it worked.

    I did ask myself why anyone would want to run ASP.Net on Apache! I think it does make things easier when it comes to support because you only have to worry about one server.

  • Worked like a charm!

    I'm running it on Win7 x64. I created "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" folder manually (didn't set any permission).

  • getting the 500 Internal Server Error, what should I do???

  • thanks for the information

  • [error] [client 127.0.0.1] mod_aspdotnet: No AspNetMount URI for request: //SampleASP/default.aspx


    any idea???.i need help. thanks

  • Great, many thanks for this - it works ok with Apache 2.2 with SSL MSI download and mod_aspdotnet2.2.0 on windows.... however I have to change lower case 'c:\' to uppercase'C:\' in the code above that is pasted into httpd.conf due to a Server 500 error - this may be helpful for those also experiencing this

  • How can I install ASP.net on Apache Linux/GNU Server

  • How to deploy more aspnet applications on Apache 2.2 with mod_aspdotnet2.2.0 ??? actually i have an website on AspNetMount /SampleASP "c:/SampleASP" but if i would want to create another application, i.e Sample2, how could i do?

    thx in advance

  • Is it possible to run this on a WAMP server? I tried but to no avail.

  • I've configured my server the same as you said , the sample page works fine, but Apache cannot support "parent paths" of ASP, what can I do next?

  • Hi All , I was very worried how to run asp on xampp, but reading this article n implementing what writer said, it working good on windows 7 , keep in mind , same day download xampp server from site mean its latest release.

    Thanks Writer

    Naveed
    Malaysia

  • Yes, my asp.net programming running after dealing with NT AUTHORITY access Temporary ASP.NET Files failure.

  • This mechanism was all working fine for our app. However we migrated the solution to VS 2010/.Net framework 4.0 and the apache solution stopped working. I am not a .net geek, but i am assuming that the mod_aspdotnet works only with .net framework 2.0. Correct me if i am wrong. What should i do to get it work on 4.0?

Comments have been disabled for this content.