page2pagepro Posted May 13, 2010 Report Share Posted May 13, 2010 Tested to work with 'hello-world.aspx'. Here are my steps for getting ASP to work with Uniform Server 5.6.5 Variables used for this how-to. %top% is assumed your path to the root of UniServer InstallationTemporarily rename %top%\usr\local\apache2\bin\Apache.exe to httpd.exeDownload mod_aspdotnet-2.2.0.2006-setup-r2.msi Install module to %top%\usr\local\apache2 (All this does is install mod_aspdotnet.so to apache2\modules folder and adds manual to apache2\manual, and of course adds registry entries)Make a copy of mod_aspdotnet.so to _mod_aspdotnet.soUninstall "mod_aspdotnet for Apache HTTP Server 2.2" - removing 'all' trace from the computer.Rename _mod_aspdotnet.so to mod_aspdotnet.soRename httpd.exe back to Apache.exeAdd following to the BOTTOM of your %top%\usr\local\apache2\conf\httpd.conf#asp.netLoadModule 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 /asp "%top%/www/asp" #/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 /asp "%top%/www/asp" #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 "%top%/www/asp"> 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[*]Restart Server[*]Place your hello-world.aspx in folder %top%/www/asp[*]Please provide feedback if you find a simpler method.I have not tested beyond *BASIC* functionality of the mod. Please, if you have an involved ASP script, please try it out and share your results. thanx! Quote Link to comment Share on other sites More sharing options...
page2pagepro Posted May 13, 2010 Author Report Share Posted May 13, 2010 ADDITION to %top%/usr/local/apache2/conf/httpd.conf #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 /asp "%top%/www/asp" #/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 /asp "%top%/www/asp" #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 "%top%/www/asp"> 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 %top%/www/asp/Hello-World.aspx Dim I ' declare our loop index variable %> <% ' Start the loop telling it to loop from 1 to 5 incrementing ' I by one (which is the default) on each pass. ' ' ie. this would have done the same thing: ' For I = 1 To 5 For I = 1 To 5 Step 1 ' Output our HTML and text using the value of I as ' the FONT TAG's SIZE attribute. %> <FONT SIZE="<%= I %>">Hello World</FONT><BR> <% Next ' Bounce back to the top of the loop %> Quote Link to comment Share on other sites More sharing options...
page2pagepro Posted May 17, 2010 Author Report Share Posted May 17, 2010 Sorry all. I had a brain-fart and these steps are incorrect. When installing mod_aspdotnet-2.2.0.2006-setup-r2.msi, several required files are installed in the %windir%. By Uninstalling the mod from add/remove, these files are of course removed and you will receive Apache Error: RunTime Error!Program: .....Apache.exeThis application as requested the Runtime to terminate it in an unusual way.Please contact the application's supoprt team for more information.Solution:Assuming %top% is the root of your installation folder containing the Start.exeDownload and extract mod_asp.zip to %top%\mod_aspRun %top%\mod_asp\Install.bat%top%\mod_asp\Uninstall.bat will undo the previous leaving no trace on PC.mod_asp.zip Quote Link to comment Share on other sites More sharing options...
chiropractor@iinet.net.au Posted July 27, 2015 Report Share Posted July 27, 2015 ^^^ @:@ ^^^File doesn't exist, does any 1 have a copy?thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.