Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HOW-TO: ASP DOT NET Module for UniServer Nano 5.6.5

Featured Replies

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 Installation

  1. Temporarily rename %top%\usr\local\apache2\bin\Apache.exe to httpd.exe
  2. Download mod_aspdotnet-2.2.0.2006-setup-r2.msi
  3. 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)
  4. Make a copy of mod_aspdotnet.so to _mod_aspdotnet.so
  5. Uninstall "mod_aspdotnet for Apache HTTP Server 2.2" - removing 'all' trace from the computer.
  6. Rename _mod_aspdotnet.so to mod_aspdotnet.so
  7. Rename httpd.exe back to Apache.exe
  8. Add following to the BOTTOM of your %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

[*]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!

  • Author

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
%>

  • Author

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:

 

mod_asp-ApacheError.png

  • RunTime Error!

  • Program: .....Apache.exe

  • This application as requested the Runtime to terminate it in an unusual way.
  • Please contact the application's supoprt team for more information.

Solution:

  1. Assuming %top% is the root of your installation folder containing the Start.exe
  2. Download and extract mod_asp.zip to %top%\mod_asp
  3. Run %top%\mod_asp\Install.bat
  4. %top%\mod_asp\Uninstall.bat will undo the previous leaving no trace on PC.

mod_asp.zip

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.