Ohad's Blog

Lets talk about .net !

Mirror at:
blogs.microsoft.co.il

News

         Ohad Israeli's Facebook profile
      

C# Code Snippts

Favorite Blogs

Israeli .Net Bloggers

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">
   </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>

Comments

Keyvan Nayyeri said:

# September 11, 2005 11:14 PM

chalo said:

Thak you !! Your sample worked nicely...
# September 15, 2005 1:19 AM

Jesse H said:

Not working for me. During installation process of Mod_AspDotNet, I get popup messages "Internal error 2908" and "Error 1935. An error occurred during the installation of assembly." Any ideas?
# October 4, 2005 7:58 AM

Xwardox said:

Thanks, your sample works fine.
I will now try to get my own asp pages back on line with Apache.
# October 10, 2005 1:20 PM

Rick N said:

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.
# May 24, 2006 2:16 PM

T said:

works like a charm :)


Thank you!
# May 24, 2006 5:19 PM

Maneesh Kumar said:

Its works like Charm!!
# May 26, 2006 1:02 PM

hb said:

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

Thanks a lot.


# May 29, 2006 5:16 AM

forced sex said:

Wellcome to the real world.
# June 6, 2006 8:20 PM

Reaction said:

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?
# June 16, 2006 9:52 PM

Andy Upton said:

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!
# June 19, 2006 6:17 AM

Greg said:

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.
# June 22, 2006 11:29 PM

Henry said:

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
# June 27, 2006 4:35 AM

Marconi (philippines) said:

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....!!!
# July 7, 2006 2:07 AM

Jeff said:

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
# July 9, 2006 8:35 PM

Leop said:

asp.net generally works ok with this setting, except atlas -- so far i had no luck with atlas
# July 12, 2006 1:04 AM

Ricardo said:

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 !!!)
# July 12, 2006 4:06 PM

MediaMaster said:

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.
# July 15, 2006 2:23 AM

Chris Love said:

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.
# July 15, 2006 3:17 PM

huso oz said:

asp.net work thnks
# July 15, 2006 9:24 PM

Krazyone said:

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
# July 16, 2006 2:07 AM

Keyvan Nayyeri said:

Ohad shows you simple stepsto run ASP.NET on Apache server. It&rsquo;s applicable for ASP.NET 2.0 , too
# July 16, 2006 2:35 AM

Jeff D said:

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
# July 16, 2006 7:59 AM

Phil said:

using this mod, how many concurrent users can apache support? iis 5.1 is only like 10
# July 16, 2006 9:48 PM

Lay Wah said:

Haha, it worked perfectly
# July 16, 2006 11:57 PM

Jeff D said:

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 :)
# July 17, 2006 1:53 AM

Anon said:

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.
# August 2, 2006 11:23 AM

John_Mac said:

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?

# December 7, 2006 11:17 PM

John_Mac said:

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?

# December 7, 2006 11:36 PM

im said:

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

# December 19, 2006 2:10 AM

Orion Blastar said:

I got tired of trying to make mod_aspdotnet working without having 403 and 404 errors, and the dreaded 500 error. I have Windows XP Home Edition SP2 that was preloaded on my laptop.

The Apache Group stopped development of the mod_aspdotnet module for some unknown reason? Maybe Microsoft sued them or threatened to sue?

Why fight with Apache when you can just download WAMP:

http://www.devside.net/server/webdeveloper

Everything you will need as a web developer in one big giant download, and all free (open source free anyway). It includes mod_dotnet and a lot of other things already preinstalled.

Just remember that the Dread Pirate Ninja Orion Blastar told you, because he already fought the battle over this and figured out a way to win.

# December 20, 2006 9:58 PM

Stankiewicz said:

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

# December 30, 2006 2:49 AM

jet said:

anyone got mod_aspdotnet to work with AJAX RC1?

# December 31, 2006 1:04 AM

moredotnet said:

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

cheers!

moredotnet

# January 4, 2007 1:17 AM

papa_smurf73 said:

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.

# January 13, 2007 10:34 AM

martin said:

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

# January 15, 2007 5:25 PM

custom laptops said:

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

# January 16, 2007 1:00 PM

ale said:

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--]

# January 22, 2007 8:27 AM

don perry said:

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

# January 23, 2007 7:25 PM

don perry said:

I also noticed that ALIAS Folder names are case sensitive. I think they shoudl fix that.

i had /GMT and couldn't pic up http://localhost/gmt/index.aspx

as soon as i changed /GMT to /gmt, it worked

# January 23, 2007 7:43 PM

50742k said:

It works beauty!!!

thanks for this!!

# January 31, 2007 4:30 AM

Awais effikhan2001@gmail.com said:

The server is not in my hand.I have uploaded the asp page and want it should work perfectly.right now it is not working giving the errors of POST method.

Kindly mail me if you have some info abt it.effikhan2001@gmail.com

# February 7, 2007 5:28 AM

Sepehr said:

would this work with newer versions of apache?

# February 8, 2007 7:32 AM

mario said:

the urls do not work

# February 9, 2007 10:06 AM

SeThCoHeN said:

IT work with apache 2.0.59?

# February 11, 2007 3:46 PM

Gerardo said:

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.

# February 13, 2007 1:54 PM

e27 said:

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!

# March 5, 2007 3:30 AM

e27 said:

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

# March 5, 2007 9:57 AM

Madhu said:

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

# March 7, 2007 4:50 PM

Josh Stodola said:

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

# March 8, 2007 9:11 PM

Josh Stodola said:

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?

# March 15, 2007 7:15 PM

Joe said:

It works very well. Thanks

# March 19, 2007 9:36 AM

jd nguyen said:

listen up guys. I've figured out how to make mod_aspdotnet also run AJAX. That's right it will run the latest microsoft ajax 1.0 plus all the asp.net 2.0 pages.

version

apache 2.2.4

mod_aspdotnet 2

a test site is here http://www.mstreamxp.com/app/ajax/default.aspx

I need a site to post the step-by-step guide, so if you guys interested shoot me a link

Jet

# March 25, 2007 9:58 PM

jd nguyen said:

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.

# March 26, 2007 1:37 AM

rizgar said:

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

# April 11, 2007 6:12 AM

Michael said:

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

michael

# April 12, 2007 8:17 AM

Nimrod the soulhunter said:

Thanks for info I really hope this help

# April 18, 2007 11:25 AM

Alex said:

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)

# April 29, 2007 9:34 PM

neoprolog » Miss Vindowz üzerinde Apache ve ASP.NET said:

Pingback from  neoprolog &raquo; Miss Vindowz üzerinde Apache ve ASP.NET

# May 18, 2007 6:37 PM

pey said:

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

# May 20, 2007 8:27 AM

Assil said:

Do Anybody have any idea about HOW TO MAKE Oracle Application Server run ASP.NET??????? Thanks
# May 24, 2007 2:56 AM

ASP.NET said:

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.

# July 4, 2007 2:28 PM

Skip Gaede said:

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

# July 12, 2007 3:40 PM

Jeff W. said:

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.

# July 29, 2007 10:32 PM

Leif Mønnike said:

I have WAMP5 v. 1.6.6 - 11/02/2006

from http://wampserver.com which includes:

      Apache 2.0.59

      PHP 5.2.0

      MySQL 5.0.27

      phpmyadmin 2.9.0.3

      Windows XP SP2 plus latest updates

      and runs 3 domains on my personal web-server

I downloaded mod_aspdotnet-2.0.0.msi from

archive.apache.org/.../mod_aspdotnet

- appended the code at the end of my httpd.conf file

 (and changed the two lines C:/Microsoft.NET... to G:/Microsoft.NET... because this is my sys-dir

Created the c:/sampleASP directory and created the

demofile index.aspx in this dir - and pasted the code into it - and saved it.

Then I restarted the Apache server and launced my

InternetExplorer as descriped with entering the address:

localhost/.../index.aspx

- and vourla...

A nice white simple demo page showed up with a look-up

button.

Now I will play with ASP.NET to see if the mecanics works just so nice and easy as this first shut.

Thank You for this facility - I was a little sad to read, that this Apache module is not maintained anymore.

Leif Mønnike

# August 11, 2007 12:28 PM

mark B said:

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

# August 20, 2007 12:23 AM

Jehzeel Laurente said:

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 ^_~

# August 21, 2007 4:38 AM

chris said:

This example worked for c:\SampleASP\index.aspx file!  but I cannot make it work for a VirtualHost

e.g

<VirtualHost *:80>

ServerName www.mywebsite.com

DocumentRoot "c:/SampleASP"

</VirtualHost>

if i try http:\\www.mywebsite.com\index.aspx does not work!

error message:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admoin@hol.gr 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.

in log file error message is:

[Tue Aug 28 22:35:41 2007] [error] [client 89.210.168.213] mod_aspdotnet: No AspNetMount URI for request: /index.aspx

can anyone help?

# August 28, 2007 3:49 PM

Sean Delaney said:

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

# August 29, 2007 7:47 AM

ASP.NET 2 auf Windows/Apache2.2 - Forum Fachinformatiker.de said:

Pingback from  ASP.NET 2 auf Windows/Apache2.2 - Forum Fachinformatiker.de

# September 9, 2007 8:03 AM

Javier said:

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 :)

# September 14, 2007 2:00 PM

stefan said:

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!

# September 26, 2007 3:35 AM

Alli said:

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 :-)

# September 27, 2007 8:27 AM

Jean-Louis said:

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.

# October 5, 2007 1:26 AM

Razorg said:

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

# October 20, 2007 1:25 PM

TT1 said:

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.

# October 23, 2007 4:39 AM

Pete Armstrong said:

Loaded the newest file from the Sourceforge page and followed you steps and everything works quite well. Note that the ASP no longer supports the mod_aspdotnet project and the link to the source forge page is at

sourceforge.net/.../mod-aspdotnet

Looks like I can run my active server pages with Apache.

Thanks

# October 24, 2007 5:40 AM

manas said:

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

# November 4, 2007 11:41 PM

Carlos A said:

I got asp.net running on apache2.2.

Steps:

Download latest mod_aspdotnet for apache2.2 from sourcefourge.net and Install it.

Open the httpd.conf file located at C:\program files\apache software foundation\apache 2.2\conf\httpd.conf

copy these lines at the end of the httpd.conf file:

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 aspdotnet_module>

 # 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

# November 9, 2007 3:57 PM

krishna said:

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

# November 12, 2007 4:27 AM

quick said:

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

# November 14, 2007 9:40 AM

Brent Hewer said:

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.

# November 18, 2007 8:38 AM

James said:

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

# November 20, 2007 11:06 AM

snowfiresystemsadministrator said:

If it says in the installer of Mod ASP.NET that the directory is not a valid location, use this version

downloads.sourceforge.net/.../mod_aspdotnet-2.2.0.2006-setup-r2.msi

# November 20, 2007 9:01 PM

asp: servers that can handle? translating? - Webmaster Forum said:

Pingback from  asp: servers that can handle? translating? - Webmaster Forum

# December 1, 2007 2:05 PM

Mike said:

I'm trying to get this working with Apache 2.2, .Net 2.0, Win Server 2003 64-bit enterprise.  Does this support authentication ok?, and virtual servers?

I've tried the reverse proxy approach (having Apache send the request to IIS, with ProxyPass and ProxyPassReverse), and running into problems with errors such as "WebForm_PostBackOptions is undefined" (non ajax pages) and "Sys is undefined" (for ajax pages), quite frustrating since these pages all work fine when running under native IIS (need apache to host a separate tomcat site).

# December 6, 2007 5:14 PM

Zohaib said:

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.

# December 29, 2007 7:42 AM

BlackZhadow said:

TreeView under Mod_AspDotNet:

Snip (weblogs.asp.net/.../424852.aspx)

------------------------------------------------

When using server (ASPDOTNET 2.0) genrated controls (TreeView in particular), Apache can't find WebResource.axd which is a phantom file used in the callback functionailty of the 2.0 platform. Server generated graphics and javascript does not work properly in the resulting pages. (i.e. the little node icons don't appear and the JavaScript Debugger in IE reports all kinds of Script errors)

I did find a fix, that was to create an empty file in the Application Directory and call it WebResource.axd as the DotNet Platform doesn't really read the file at all. After that, DotNet 2.0 ran perfectly with Apache 2.0.55 And Mod_AspDotNet 2.0.

Example: Supposing in my httpd.conf I have the following lines to map a folder as an ASP

App: ## Begin HTTPD.CONF AspNetMount /app "C:/HTML/app" Alias /app "C:/HTML/app" ## END HTTPD.CONF I then make a new file in the folder "C:\HTML\app" and call it

"WebResource.axd".

------------------------------------------------

# January 2, 2008 2:47 PM

Nalum said:

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?

# January 7, 2008 12:07 PM

Matthew said:

Thanks!  Worked like a charm after a permissions error.

# January 7, 2008 12:38 PM

SharpMap on Apache « GeoMusings said:

Pingback from  SharpMap on Apache &laquo; GeoMusings

# January 7, 2008 2:10 PM

Murad said:

Hi all

I have different .net frameworks installed

and i use v2.0.50727

What should i do ?

BR

# January 24, 2008 4:50 AM

Bobby said:

I saw carlos stated he got his working on Apache 2.2  I tried following his instructions and after everything, I couldn't get apache to restart. Has anyone gotten this to work on Apache 2.2.6? I currently have WAMP 2.0

Any help on this would be great... if so.. you can email me at groundzero2010@gmail.com

Thanks :D

# January 25, 2008 10:29 PM

Nick said:

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?

# February 4, 2008 12:37 AM

Nick said:

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.

# February 4, 2008 11:22 AM

Orville's Blog said:

# February 6, 2008 6:31 PM