Prashant Singh Prashant Singh - 2 months ago 32
ASP.NET (C#) Question

Compiling an ASP program through Xampp

Can i use XAMPP apache to compile my ASP files. If so, please tell how ?

Any link or document will do

Thanks

Answer

I am assuming that you have XAMPP and ASP Installer already installed

open up C:\xampp\htdocs\apache\conf\extra\httpd-xampp.conf

add this between the <IfModule alias_module></IfModule> tags

#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> 
  AspNetMount /SampleASP "c:/xampp/asp_docs" 
  Alias /SampleASP "c:/xampp/asp_docs"
  <Directory "c:/xampp/asp_docs"> 
    Options FollowSymlinks ExecCGI 
    Order allow,deny 
    Allow from all 
    DirectoryIndex index.htm index.aspx 
  </Directory> 
  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

Now restart your Apache server

Also you need to keep your asp files in C:\xampp\asp_docs

Comments