apache and asp.net wont work

Discussion in 'Apache' started by jagguy, Mar 11, 2008.

  1. #1
    Hi,

    I was told to ask experts here about a problem. If you can point me in the right direction then that will be appreciated.

    I cant get asp.net to work on windows apache2.05 . I have winxp home and i am using vb.net2003 . I download the file from sourceforge aspdotnet...2.0.0 and run the file and all i get is the module loaded and i edit the httpd.conf file to add the asp.net stuff 'on got froma website'.

    I have .net framework 3.5 and apache works fine and i have the relevant dir for asp.net web pages created.

    When i run the aspx file it doesnt pick it up but i dont get an error , i just get the html/aspx code output.

    I have the httpd file edited with aspx commands i need for this and where to load module etc ,the aspdot..so file in the module dir and run the download.

    here is what i add to the httpd.conf file
    
    
    
    #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 "F:/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 "F:/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 "F:/www/SampleASP"
    
      # Allow asp.net scripts to be executed in the /SampleASP example
      <Directory "F:/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 
    
    Code (markup):

     
    jagguy, Mar 11, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    If you need .NET, I would suggest IIS. Some people say Apache with mods can process .NET, but the code will not be the same when running on IIS. At the end, I would choose the best platform
     
    gate2vn, Mar 12, 2008 IP
  3. jagguy

    jagguy Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes i agree but to get IIS i need winxp pro and i have home ed.

    I will test it using apache then when i like it i will make the large change.
     
    jagguy, Mar 12, 2008 IP