943,786 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 18658
  • ASP.NET RSS
Jun 20th, 2008
0

how to run asp.net pages using apache

Expand Post »
I have a wamp apache server..
how to run asp.net pages from it..
Similar Threads
Reputation Points: 13
Solved Threads: 1
Newbie Poster
prasu is offline Offline
11 posts
since Jun 2008
Jun 20th, 2008
0

Re: how to run asp.net pages using apache

Ok. You need an Apache Module to do this.

Download it here- http://sourceforge.net/project/showf...ease_id=490544


Since your Apache came from Wamp, the default installation path for the module will need to be changed to - C:\wamp\bin\apache\apache2.2.8 (or wherever your Apache is installed)

Next, you need to modify your httpd.conf file. To do so, Left Click once on your WampServer speedometer, goto Apache and there you can see the httpd.conf option. Add the following code

#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:/wamp/www/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:/wamp/www/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:/wamp/www/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


Next, in your www folder, create a folder named SampleASP and put your aspx pages there. In case you need to change the folder, make the changes in the name in the code posted above.


When I did this I got the following error-

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

To correct this, create a folder "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" and set permission to write to it.

I am using Visual Studio 2008 Professional with Apache 2.2.8 on WampServer 2.0
Reputation Points: 32
Solved Threads: 14
Junior Poster
tuse is offline Offline
173 posts
since Jul 2007
Jun 20th, 2008
0

Re: how to run asp.net pages using apache

If you want to deploy asp.net pages on your Linux Server, you might want to take a look at this -

http://www.dotheweb.net/lama/
Reputation Points: 32
Solved Threads: 14
Junior Poster
tuse is offline Offline
173 posts
since Jul 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Inserting data from a webform into an MS Excel Sheet
Next Thread in ASP.NET Forum Timeline: Not declare???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC