Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2007, 04:26 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default ASP .net 2.0 + APACHE 2

Hi everyone.
I'm trying to connect ASP .net 2.0 (SDK that comes with visual studio 2005) to apache2 (I don't really want to use mod_perl). is there anyway that i can do that, or I either have to switch to IIS or use mod_aspdotnet from apache2??


Thanks
Best Regards
Mani

 
Old June 20th, 2007, 08:09 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi,
After googling for 2 hours I found there is mod called mod_aspdotnet which can be downloaded from sourceforge wesite (mod_aspdotnet which uses the asp that microsoft released). now I try to configure that mod to apache, no luck on that. dose anybody know how to configure that?

Original aspnet.conf
# Load the Apache mod_aspdotnet.so module
# - which in turn loads the .NET / ASP.NET Framework
# - which in turn loads the Apache.Web.dll provider
#
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

<IfModule mod_aspdotnet.cpp>

  # A specific version of the .NET Common Language Runtime may be forced
  # with the AspNetVersion directive; uncomment one of the lines below
  # for the v1.0 or v1.1 general release versions, and refer to the
  # C:/WINDOWS/Microsoft.NET/Framework directory for installed versions.
  # The default is the most recent installed .NET CLR version.
  #
  #AspNetVersion v1.0.3705
  #AspNetVersion v1.1.4322

  # Appear consistent with other ASP.NET hosts to the client.
  # This is optional, unaware of client applications expecting it.
  #
  # Header Add X-Powered-By ASP.NET

  # Process these file types with the asp.net handler
  # (provided they fall within an AspNetMount'ed location)
  #
  AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

  # Serve the /aspnet_client files to the web browser, to handle
  # JavaScript controls integrated into ASP.NET applications.
  #
  AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"

  # Permit the /aspnet_client files to be served to web clients.
  # Change C:/Windows above in the AliasMatch, and below in the <Directory >
  # line to reflect the root of Windows (echo %windir% from the cmd prompt.)
  #
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
    Options FollowSymlinks
    Order allow,deny
    Allow from all
  </Directory>

  # This <IfDefine > prevents Apache from processing this example
  # template, duplicate the contents (adjusting for your desired
  # /app-uri and C:/path/to/app) as many times as necessary, but
  # not within the <IfDefine > ... </IfDefine> section
  #
  <IfDefine ASP.NET-template>

    # Create an ASP.NET host for Requests to /app-uri to be processed
    # by c:/path/to/app - see the Alias below for actually serving
    # /app-uri from Apache.
    # This is usually the path of the web.config file for the app.
    #
    AspNetMount /app-uri "C:/path/to/app"

    # Have Apache serve /app-uri requests with c:/path/to/app mounted hosted
    # Some form of Alias is required, AspNetMount does not expose /app-uri
    # itself, through Apache.
    #
    Alias /app-uri "C:/path/to/app"

    # Permit content in C:/path/to/app to be served (and use ASP.NET
    # conventions for the default pages.)
    #
    <Directory "C:/path/to/app">
      # Add 'Indexes' to Options below for autoindex file listings
      # Add 'Includes' to Options below for SSI reparsing
      Options FollowSymlinks
      # Add 'Virtual' to AspNet below for non-file resources
      AspNet Files
      Order allow,deny
      Allow from all
      DirectoryIndex default.htm default.aspx
    </Directory>

  </IfDefine>

</IfModule>

I used Include to main configure file httpd.conf to include that file.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
how can apache support asp.net2.0 ? caaa001 ASP.NET 2.0 Professional 0 May 14th, 2007 09:59 AM
apache and asp//asp.net SessioN Classic ASP Basics 6 July 1st, 2005 03:09 PM
apache & asp jperson19468 Oracle ASP 0 August 5th, 2004 10:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.