Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move to old-code

svn path=/old-code/; revision=156237
  • Loading branch information...
commit dde40134f2941e45b3c06d102bae29bd81bd6d1b 1 parent 13243bc
@migueldeicaza migueldeicaza authored
Showing with 12,654 additions and 0 deletions.
  1. BIN  appserver/Mono.AppServer.snk
  2. +56 −0 appserver/appserver.build
  3. +201 −0 appserver/appserver.home.htm
  4. +85 −0 appserver/readme.txt
  5. +54 −0 appserver/samples/App3/app.log
  6. +31 −0 appserver/samples/App3/button.aspx
  7. +33 −0 appserver/samples/App3/code-render.aspx
  8. +3 −0  appserver/samples/App3/helloworld.aspx
  9. +27 −0 appserver/samples/App3/index.aspx
  10. BIN  appserver/samples/App3/mono.png
  11. +12 −0 appserver/samples/App3/web.config
  12. BIN  appserver/samples/Deployment.Sample/App4.zip
  13. BIN  appserver/samples/RemotingClient/App.ico
  14. +58 −0 appserver/samples/RemotingClient/AssemblyInfo.cs
  15. +117 −0 appserver/samples/RemotingClient/Form1.cs
  16. +102 −0 appserver/samples/RemotingClient/Form1.resx
  17. +126 −0 appserver/samples/RemotingClient/RemotingClient.csproj
  18. +48 −0 appserver/samples/RemotingClient/RemotingClient.csproj.user
  19. +11 −0 appserver/samples/RemotingClient/app.config
  20. +58 −0 appserver/samples/RemotingObject/AssemblyInfo.cs
  21. +55 −0 appserver/samples/RemotingObject/Class1.cs
  22. +42 −0 appserver/samples/RemotingObject/RemotingObject.build
  23. +93 −0 appserver/samples/RemotingObject/RemotingObject.csproj
  24. +48 −0 appserver/samples/RemotingObject/RemotingObject.csproj.user
  25. +32 −0 appserver/samples/RemotingObject/app.config
  26. +4 −0 appserver/samples/Users/bobbob.user
  27. BIN  appserver/samples/Users/ssmith.user
  28. +62 −0 appserver/samples/WebApp/AssemblyInfo.cs
  29. +1 −0  appserver/samples/WebApp/Global.asax
  30. +70 −0 appserver/samples/WebApp/Global.asax.cs
  31. +42 −0 appserver/samples/WebApp/Global.asax.resx
  32. +12 −0 appserver/samples/WebApp/Web.config
  33. +8 −0 appserver/samples/WebApp/app.config
  34. +54 −0 appserver/samples/WebApp/app.log
  35. +31 −0 appserver/samples/WebApp/button.aspx
  36. +33 −0 appserver/samples/WebApp/code-render.aspx
  37. +4 −0 appserver/samples/WebApp/helloworld.aspx
  38. +28 −0 appserver/samples/WebApp/index.aspx
  39. BIN  appserver/samples/WebApp/mono.png
  40. +151 −0 appserver/samples/WebApp/webapp.csproj
  41. +4 −0 appserver/samples/WebApp/webapp.csproj.webinfo
  42. +9 −0 appserver/samples/WebApp/webapp.vsdisco
  43. BIN  appserver/src/AppServerConsole/App.ico
  44. +35 −0 appserver/src/AppServerConsole/AppServerConsole.build
  45. +111 −0 appserver/src/AppServerConsole/AppServerConsole.csproj
  46. +48 −0 appserver/src/AppServerConsole/AppServerConsole.csproj.user
  47. +58 −0 appserver/src/AppServerConsole/AssemblyInfo.cs
  48. +27 −0 appserver/src/AppServerConsole/app.config
  49. +54 −0 appserver/src/AppServerConsole/main.cs
  50. +72 −0 appserver/src/AppServerSolution.sln
  51. BIN  appserver/src/AppServerSolution.suo
  52. +162 −0 appserver/src/Mono.AppServer.AdminApplication/AdminApplication.cs
  53. +58 −0 appserver/src/Mono.AppServer.AdminApplication/AssemblyInfo.cs
  54. +23 −0 appserver/src/Mono.AppServer.AdminApplication/Mono.AppServer.AdminApplication.build
  55. +108 −0 appserver/src/Mono.AppServer.AdminApplication/Mono.AppServer.AdminApplication.csproj
  56. +48 −0 appserver/src/Mono.AppServer.AdminApplication/Mono.AppServer.AdminApplication.csproj.user
  57. +31 −0 appserver/src/Mono.AppServer.Core/AppServerSectionHandler.cs
  58. +31 −0 appserver/src/Mono.AppServer.Core/ApplicationAssembly.cs
  59. +278 −0 appserver/src/Mono.AppServer.Core/ApplicationBase.cs
  60. +251 −0 appserver/src/Mono.AppServer.Core/ApplicationCollection.cs
  61. +52 −0 appserver/src/Mono.AppServer.Core/ApplicationDirectory.cs
  62. +48 −0 appserver/src/Mono.AppServer.Core/ApplicationFile.cs
  63. +70 −0 appserver/src/Mono.AppServer.Core/ApplicationLog.cs
  64. +368 −0 appserver/src/Mono.AppServer.Core/ApplicationServer.cs
  65. +37 −0 appserver/src/Mono.AppServer.Core/ApplicationType.cs
  66. +21 −0 appserver/src/Mono.AppServer.Core/AssemblyInfo.cs
  67. +177 −0 appserver/src/Mono.AppServer.Core/BaseComponent.cs
  68. +151 −0 appserver/src/Mono.AppServer.Core/BaseMarshalByRefObject.cs
  69. +151 −0 appserver/src/Mono.AppServer.Core/BaseObject.cs
  70. +167 −0 appserver/src/Mono.AppServer.Core/BaseStaticClass.cs
  71. +19 −0 appserver/src/Mono.AppServer.Core/IWebApplication.cs
  72. +23 −0 appserver/src/Mono.AppServer.Core/Mono.AppServer.Core.build
  73. +158 −0 appserver/src/Mono.AppServer.Core/Mono.AppServer.Core.csproj
  74. +48 −0 appserver/src/Mono.AppServer.Core/Mono.AppServer.Core.csproj.user
  75. +59 −0 appserver/src/Mono.AppServer.Core/ServerEnvironment.cs
  76. +19 −0 appserver/src/Mono.AppServer.FTPApplication/AssemblyInfo.cs
  77. +123 −0 appserver/src/Mono.AppServer.FTPApplication/FTPApplication.cs
  78. +56 −0 appserver/src/Mono.AppServer.FTPApplication/FTPClient.cs
  79. +273 −0 appserver/src/Mono.AppServer.FTPApplication/FTPClientCollection.cs
  80. +1,115 −0 appserver/src/Mono.AppServer.FTPApplication/FTPServer.cs
  81. +20 −0 appserver/src/Mono.AppServer.FTPApplication/Mono.AppServer.FTPApplication.build
  82. +118 −0 appserver/src/Mono.AppServer.FTPApplication/Mono.AppServer.FTPApplication.csproj
  83. +48 −0 appserver/src/Mono.AppServer.FTPApplication/Mono.AppServer.FTPApplication.csproj.user
  84. +19 −0 appserver/src/Mono.AppServer.RemotingApplication/AssemblyInfo.cs
  85. +162 −0 appserver/src/Mono.AppServer.RemotingApplication/DynamicMessageSink.cs
  86. +21 −0 appserver/src/Mono.AppServer.RemotingApplication/Mono.AppServer.RemotingApplication.build
  87. +123 −0 appserver/src/Mono.AppServer.RemotingApplication/Mono.AppServer.RemotingApplication.csproj
  88. +48 −0 appserver/src/Mono.AppServer.RemotingApplication/Mono.AppServer.RemotingApplication.csproj.user
  89. +92 −0 appserver/src/Mono.AppServer.RemotingApplication/RemoteLoader.cs
  90. +71 −0 appserver/src/Mono.AppServer.RemotingApplication/RemotingApplication.cs
  91. +64 −0 appserver/src/Mono.AppServer.RemotingApplication/TraceListener.cs
  92. +51 −0 appserver/src/Mono.AppServer.RemotingApplication/TrackingHandler.cs
  93. +19 −0 appserver/src/Mono.AppServer.Security/AssemblyInfo.cs
  94. +85 −0 appserver/src/Mono.AppServer.Security/EncryptedFileStorage.cs
  95. +58 −0 appserver/src/Mono.AppServer.Security/FormsSecurityManager.cs
  96. +20 −0 appserver/src/Mono.AppServer.Security/ISecurityStorage.cs
  97. +18 −0 appserver/src/Mono.AppServer.Security/Mono.AppServer.Security.build
  98. +133 −0 appserver/src/Mono.AppServer.Security/Mono.AppServer.Security.csproj
  99. +48 −0 appserver/src/Mono.AppServer.Security/Mono.AppServer.Security.csproj.user
  100. +284 −0 appserver/src/Mono.AppServer.Security/PropertyCollection.cs
  101. +58 −0 appserver/src/Mono.AppServer.Security/PropertyInstance.cs
  102. +100 −0 appserver/src/Mono.AppServer.Security/SecurityManager.cs
  103. +153 −0 appserver/src/Mono.AppServer.Security/User.cs
  104. +266 −0 appserver/src/Mono.AppServer.Security/UserCollection.cs
  105. +12 −0 appserver/src/Mono.AppServer.WebApplication/AssemblyInfo.cs
  106. +19 −0 appserver/src/Mono.AppServer.WebApplication/IApplicationHost.cs
  107. +20 −0 appserver/src/Mono.AppServer.WebApplication/Mono.AppServer.WebApplication.build
  108. +133 −0 appserver/src/Mono.AppServer.WebApplication/Mono.AppServer.WebApplication.csproj
  109. +48 −0 appserver/src/Mono.AppServer.WebApplication/Mono.AppServer.WebApplication.csproj.user
  110. +312 −0 appserver/src/Mono.AppServer.WebApplication/MonoWorkerRequest.cs
  111. +119 −0 appserver/src/Mono.AppServer.WebApplication/Tracing.cs
  112. +98 −0 appserver/src/Mono.AppServer.WebApplication/WebApplication.cs
  113. +35 −0 appserver/src/Mono.AppServer.WebApplication/WebApplicationHost.cs
  114. +148 −0 appserver/src/Mono.AppServer.WebApplication/XSPApplicationHost.cs
  115. +410 −0 appserver/src/Mono.AppServer.WebApplication/XSPWorkerRequest.cs
  116. +38 −0 appserver/src/Mono.AppServer.build
  117. +10 −0 appserver/src/gacinstall.bat
  118. +25 −0 appserver/utils/Logger.NET/AssemblyInfo.cs
  119. +43 −0 appserver/utils/Logger.NET/Configuration/LoggerNETConfigSectionHandler.cs
  120. +11 −0 appserver/utils/Logger.NET/Diagnostics/AbstractConfigurator.cs
  121. +180 −0 appserver/utils/Logger.NET/Diagnostics/Category.cs
  122. +50 −0 appserver/utils/Logger.NET/Diagnostics/ConfigFileConfigurator.cs
  123. +36 −0 appserver/utils/Logger.NET/Diagnostics/ConfiguratorAttribute.cs
  124. +75 −0 appserver/utils/Logger.NET/Diagnostics/Destination.cs
  125. +40 −0 appserver/utils/Logger.NET/Diagnostics/DestinationHolder.cs
  126. +90 −0 appserver/utils/Logger.NET/Diagnostics/Destinations/ConsoleDestination.cs
  127. +188 −0 appserver/utils/Logger.NET/Diagnostics/Destinations/FileDestination.cs
  128. +95 −0 appserver/utils/Logger.NET/Diagnostics/LogFactory.cs
  129. +187 −0 appserver/utils/Logger.NET/Diagnostics/Messages/AbstractMessage.cs
  130. +31 −0 appserver/utils/Logger.NET/Diagnostics/Messages/EnterMethodMessage.cs
  131. +40 −0 appserver/utils/Logger.NET/Diagnostics/Messages/ErrorMessage.cs
  132. +31 −0 appserver/utils/Logger.NET/Diagnostics/Messages/ExitMethodMessage.cs
  133. +23 −0 appserver/utils/Logger.NET/Diagnostics/Messages/StringMessage.cs
  134. +56 −0 appserver/utils/Logger.NET/Diagnostics/Messages/ValueMessage.cs
  135. +71 −0 appserver/utils/Logger.NET/Diagnostics/NameObjectCollection.cs
  136. +43 −0 appserver/utils/Logger.NET/Diagnostics/Setting.cs
  137. +15 −0 appserver/utils/Logger.NET/Diagnostics/SettingNotFoundException.cs
  138. +15 −0 appserver/utils/Logger.NET/Diagnostics/TypeNotFoundException.cs
  139. +54 −0 appserver/utils/Logger.NET/Diagnostics/UniqueNameObjectCollection.cs
  140. +88 −0 appserver/utils/Logger.NET/Diagnostics/XmlFileConfigurator.cs
  141. +458 −0 appserver/utils/Logger.NET/License.txt
  142. +21 −0 appserver/utils/Logger.NET/Logger.NET sample.config
  143. +28 −0 appserver/utils/Logger.NET/Logger.NET.build
  144. +197 −0 appserver/utils/Logger.NET/Logger.NET.csproj
  145. +21 −0 appserver/utils/Logger.NET/Logger.sln
  146. +24 −0 appserver/utils/Logger.NET/Makefile
  147. +158 −0 appserver/utils/Logger.NET/Readme.txt
  148. +33 −0 appserver/utils/Logger.NET/build.bat
  149. +2 −0  appserver/utils/Logger.NET/build_debug.bat
  150. +340 −0 appserver/utils/SharpZipLib/COPYING.txt
  151. +69 −0 appserver/utils/SharpZipLib/Changes.txt
  152. BIN  appserver/utils/SharpZipLib/Documentation.chm
  153. BIN  appserver/utils/SharpZipLib/ICSharpCode.SharpZipLib.dll
  154. BIN  appserver/utils/SharpZipLib/Readme.pdf
View
BIN  appserver/Mono.AppServer.snk
Binary file not shown
View
56 appserver/appserver.build
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- NAnt build file for Mono.AppServer -->
+<project name="Mono.AppServer" default="build">
+ <property name="debug" value="true"/>
+
+ <target name="build">
+ <call target="src"/>
+ <call target="samples"/>
+ </target>
+
+ <target name="samples">
+ <copy todir="bin/users">
+ <fileset basedir="samples/users">
+ <includes name="*.user"/>
+ </fileset>
+ </copy>
+ <mkdir dir="bin/applications/WebApp"/>
+ <copy todir="bin/applications/WebApp">
+ <fileset basedir="samples/WebApp">
+ <includes name="*.*"/>
+ </fileset>
+ </copy>
+ <nant basedir="samples/RemotingObject" target="build" buildfile="samples/RemotingObject/RemotingObject.build"/>
+ </target>
+ <target name="src">
+ <mkdir dir="lib"/>
+ <copy file="utils/SharpZipLib/ICSharpCode.SharpZipLib.dll" tofile="lib/ICSharpCode.SharpZipLib.dll"/>
+ <nant basedir="utils/Logger.NET" target="release" buildfile="utils/Logger.NET/Logger.NET.build"/>
+ <copy file="utils/Logger.NET/Logger.NET.dll" tofile="lib/Logger.NET.dll"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.Security" target="build" buildfile="src/Mono.AppServer.Security/Mono.AppServer.Security.build"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.Core" target="build" buildfile="src/Mono.AppServer.Core/Mono.AppServer.Core.build"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.WebApplication" target="build" buildfile="src/Mono.AppServer.WebApplication/Mono.AppServer.WebApplication.build"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.FTPApplication" target="build" buildfile="src/Mono.AppServer.FTPApplication/Mono.AppServer.FTPApplication.build"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.AdminApplication" target="build" buildfile="src/Mono.AppServer.AdminApplication/Mono.AppServer.AdminApplication.build"/>
+ <nant inheritall="true" basedir="src/Mono.AppServer.RemotingApplication" target="build" buildfile="src/Mono.AppServer.RemotingApplication/Mono.AppServer.RemotingApplication.build"/>
+ <nant inheritall="true" basedir="src/AppServerConsole" target="build" buildfile="src/AppServerConsole/AppServerConsole.build"/>
+ <call target="deploy.bin"/>
+<!-- <nant inheritall="true" basedir="src/Mono.AppServer.Admin.UI" target="build" buildfile="src/Mono.AppServer.Admin.UI/Mono.AppServer.Admin.UI.build"/>-->
+ </target>
+ <target name="deploy.bin">
+ <mkdir dir="bin"/>
+ <mkdir dir="bin/users"/>
+ <mkdir dir="bin/applications"/>
+ <copy todir="bin">
+ <fileset basedir="lib">
+ <includes name="*.dll"/>
+ <includes name="*.exe"/>
+ <includes name="*.config"/>
+ </fileset>
+ </copy>
+ </target>
+ <target name="clean">
+ <delete dir="lib" failonerror="false"/>
+ <delete dir="bin" failonerror="false"/>
+ </target>
+</project>
View
201 appserver/appserver.home.htm
@@ -0,0 +1,201 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+ <HEAD>
+ <title>Application Server</title>
+ <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
+ <meta name="CODE_LANGUAGE" Content="C#">
+ <meta name="vs_defaultClientScript" content="JavaScript">
+ <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
+ </HEAD>
+ <body leftmargin="0" topmargin="0">
+ <form name="default" method="post" action="appserver.aspx" id="default">
+ <BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px">
+ <P><FONT face="Verdana" size="2"><FONT face="Verdana" size="2"><FONT face="Verdana" size="2"><FONT face="Verdana" size="2">
+ <TABLE id="Table1" cellSpacing="1" cellPadding="4" width="90%" border="0">
+ <TBODY>
+ <TR>
+ <TD>
+ <P><FONT size="2"><FONT face="Verdana" size="2"><FONT size="5"><STRONG>Application Server</STRONG></FONT><BR>
+ </FONT>
+ <BR>
+ <A href="http://www12.brinkster.com/brianr/ideas/appserver.aspx">Home Page</A><BR>
+ <BR>
+ I've been working on an application server that would host remoting, web, and
+ other applications for the Mono project.&nbsp;</FONT></P>
+ <P><FONT size="2"> <FONT face="Verdana"><FONT size="3"><FONT size="2"><FONT face="Verdana"><FONT size="3"><STRONG>
+ Download</STRONG></FONT></FONT></FONT></FONT></FONT></FONT></P>
+ <UL>
+ <LI>
+ <FONT size="2">0.2: Binary &amp; Source Code</FONT>
+ <UL>
+ <LI>
+ <FONT size="2">Completely Redesigned Administration UI. See icon credit below.</FONT>
+ <LI>
+ <FONT size="2">Supports deploying &amp; mounting application packages (.zip,.tar)</FONT>
+ <LI>
+ <FONT size="2">Ability to "publish" applications directory via FTP.&nbsp; You can
+ then get, put, etc. to update files remotely.</FONT>
+ <LI>
+ <FONT size="2">Basic user manager</FONT>
+ <LI>
+ <FONT size="2">Modified Web Application to use the Mono XSP Server instead of
+ Cassini.&nbsp; Cassini is now an optional download (see below).</FONT>
+ <LI>
+ <FONT size="2">Many bug fixes.</FONT></LI></UL>
+ <LI>
+ <FONT size="2">0.1: Initial&nbsp;alpha release&nbsp;</FONT></LI></UL>
+ <P><FONT size="2"><FONT face="Verdana"><FONT size="3"><STRONG><a name="Features">Features</a></STRONG></FONT>&nbsp;</FONT></FONT>
+ </P>
+ <UL>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Pluggable Application Architecture </STRONG></FONT>
+ <UL>
+ <LI>
+ <FONT face="Verdana" size="2">Base application class allows an application type to
+ be managed by the framework </FONT>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Web Application</STRONG> class can serve
+ ASP.NET pages utilizing the XSP Server developed by Daniel Lopez Ridruejo
+ (daniel@rawbyte.com) and Gonzalo Paniagua Javier, Ximian Inc. (<A href="http://www.ximian.com">http://www.ximian.com</A>)
+ </FONT>
+ <LI>
+ <FONT face="Verdana" size="2">Alternate Web Server is also availalbe based on the </FONT>
+ <A href="http://asp.net/Default.aspx?tabindex=7&amp;tabid=41"><FONT face="Verdana" size="2">
+ Cassini web server</FONT></A><FONT face="Verdana" size="2"> released by
+ Microsoft.&nbsp; [ Download ] </FONT>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>FTP Application</STRONG> class serves files
+ to FTP clients.
+ <BR>
+ The ftp server was adapted from a </FONT><A href="http://www.c-sharpcorner.com/internet/FTPServerinCSharp.asp">
+ <FONT face="Verdana" size="2">server by Pramod Singh</FONT></A><FONT face="Verdana" size="2">.&nbsp;
+ It was ported to the final release of .NET, modified to run outside the GUI,
+ and integrated with the security framework. </FONT>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Remoting Application</STRONG> class hosts
+ .NET objects </FONT>
+ <LI>
+ <FONT face="Verdana" size="2">Extendable for other services: LDAP, POP3, SMTP, etc. </FONT>
+ </LI>
+ </UL>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Web-based Admistration Program </STRONG></FONT>
+ <UL>
+ <LI>
+ <FONT size="2"><FONT face="Verdana" size="2">The server self-hosts an ASP.NET
+ application for managing the applications allowing the settings to be editted. </FONT>
+ </FONT>
+ <LI>
+ <FONT size="2">Using icons designed by Jakub "Jimmac" Steiner at(<A href="http://jimmac.musichall.cz/ikony.php3">http://jimmac.musichall.cz/ikony.php3</A>)
+ with permission from Miguel(<A href="http://www.ximian.com">http://www.ximian.com</A>)</FONT>
+ <FONT size="2">
+ <LI>
+ <FONT size="2">Add/Edit/Delete Users within the Admin UI</FONT>
+ <LI>
+ View the </FONT><A href="appserver-screenshots.aspx"><FONT face="Verdana" size="2">Screenshots</FONT></A>
+ </FONT></LI></UL>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Application Configuration/Installation </STRONG>
+ </FONT>
+ <UL>
+ <LI>
+ <FONT face="Verdana" size="2">All configuration is stored in XML files either
+ within the application directory (similar to web.config) or in the server
+ directory. </FONT>
+ <LI>
+ <FONT face="Verdana" size="2">Applications can be installed by placing them in the
+ "applications" directory, or uploading a installation package (.zip or .tar)
+ using the interface.&nbsp; This form of </FONT><A href="http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html">
+ <FONT face="Verdana" size="2">deployment</FONT></A><FONT face="Verdana" size="2">
+ is similar to Tomcat.</FONT></LI></UL>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Container Application </STRONG></FONT>
+ <UL>
+ <LI>
+ <FONT face="Verdana" size="2">The container currently runs as a console
+ applications (will run as a service in the future).&nbsp; Similar to COM+/IIS
+ applications but can be web, ftp, remoting, etc. </FONT>
+ <LI>
+ <FONT face="Verdana" size="2">Publishes remote objects for mangement (unload,
+ reload, etc.) </FONT>
+ </LI>
+ </UL>
+ <LI>
+ <FONT face="Verdana" size="2"><STRONG>Other features</STRONG> </FONT>
+ <UL>
+ <LI>
+ <FONT face="Verdana" size="2">Integrated Security: maintains list of users and
+ roles.&nbsp; This is used to secure the applications, FTP access, and is
+ available for hosted ASP.NET applications. </FONT>
+ <LI>
+ <FONT face="Verdana" size="2">Logging: The container application listens to trace
+ messages from the hosted applications and logs them into files.&nbsp; These
+ messages are then viewable within the admin site. </FONT>
+ </LI>
+ </UL>
+ </LI>
+ </UL>
+ <P><FONT size="2"><FONT face="Verdana"><FONT size="3"><STRONG><a name="To-Do">To-Do List</a></STRONG></FONT></FONT></FONT></P>
+ <UL>
+ <LI>
+ <FONT size="2"><STRONG>Administration UI</STRONG></FONT>&nbsp;
+ <UL>
+ <LI>
+ <FONT size="2">Use interface within admin gui instead of classes: </FONT>
+ <UL>
+ <LI>
+ <FONT size="2">IClientSessions (FTP App)</FONT>
+ <LI>
+ <FONT size="2">IWebServices (Web App, Cassini App) </FONT>
+ </LI>
+ </UL>
+ <LI>
+ <FONT size="2">Provide GetProperties() method to return name/value pairs to
+ display. Change admin app to display this instead of reading properties
+ directly off objects. (For first tab on application page) </FONT>
+ <LI>
+ <FONT size="2">GetWebServices() method should return WebServiceDescriptor objects </FONT>
+ <LI>
+ <FONT size="2">Add ReadTextFile, WriteTextFile. Update admin GUI to allow editting
+ of text files.</FONT>
+ <LI>
+ <FONT size="2">Add ReadBinaryFile. Update admin GUI to display image files. - Add
+ WriteFile. Update admin GUI to allow uploading of files into the application
+ directories. </FONT>
+ <LI>
+ <FONT size="2">Support multiple roles within the admin GUI - Secure admin GUI with
+ login page</FONT></LI></UL>
+ <LI>
+ <FONT size="2"><STRONG><FONT size="2"><STRONG><FONT size="2">User Administration</FONT></STRONG></FONT></STRONG></FONT>
+ <UL>
+ <LI>
+ <FONT size="2">Role publishing- Allow installed applications to publish which roles
+ they support.&nbsp; </FONT>
+ <LI>
+ <FONT size="2">Add SQL-based user storage.&nbsp;</FONT></LI></UL>
+ <LI>
+ <FONT size="2"><STRONG>Container Application</STRONG></FONT>
+ <UL>
+ <LI>
+ <FONT size="2">Run as service or console mode</FONT>
+ <LI>
+ <FONT size="2">Add more configurable option to server's .config file</FONT></LI></UL>
+ </LI>
+ </UL>
+ <P>&nbsp;</P>
+ </TD>
+ <TD vAlign="top">
+ <P><BR>
+ &nbsp;</P>
+ </TD>
+ </TR></TBODY></TABLE>
+ <BR>
+ <BR>
+ </FONT></FONT></FONT></FONT>
+ </P>
+ </BLOCKQUOTE>
+ <P>
+ <FONT face="Verdana" size="2"></FONT>&nbsp;</P>
+ </form>
+ </body>
+</HTML>
View
85 appserver/readme.txt
@@ -0,0 +1,85 @@
+
+
+ ******************************************************
+
+ Mono AppServer (c#) - v0.2
+
+ developed by Brian Ritchie
+
+ http://www12.brinkster.com/brianr/ideas/appserver.aspx
+ comments / suggestions: brianlritchie@hotmail.com
+
+ ******************************************************
+
+
+1. Introduction
+2. Credits
+3. License
+4. Install
+
+
+--------------
+INTRODUCTION
+--------------
+This is a .NET AppServer that will hopefully become part of the Mono Platform.
+
+NOTE: Runs on Windows w/ MS .NET Framework...not Mono yet :(
+** Work in progress **
+
+See appserver.home.htm for more details.
+
+
+--------------
+CREDITS
+--------------
+XSP Server:
+This product includes software developed by
+ * Daniel Lopez Ridruejo (daniel@rawbyte.com) and
+ * Ximian Inc. (http://www.ximian.com)
+
+FTP Server:
+ * Pramod Singh (pramodkumarsingh@hotmail.com)
+
+Graphics:
+ * Jakub "Jimmac" Steiner (http://jimmac.musichall.cz/ikony.php3)
+
+Compression Library (SharpZipLib)
+ * Mike Krueger (http://www.icsharpcode.net/OpenSource/SharpZipLib/)
+
+--------------
+LICENSE: X11
+--------------
+
+Copyright (c) 2003 Brian Ritchie <brianlritchie@hotmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+http://www.opensource.org/licenses/mit-license.php
+
+
+-----------------
+INSTALLATION
+-----------------
+1. Unzip to c:\Mono.AppServer
+2. bobbob.usr should be in your c:\
+ (this is only needed by the security system for the FTP app. I'll change this soon.)
+2. Make sure gacutil is on your path
+3. Run "run.bat" in the bin directory
+4. Pick one:
+ a) Admin Client:
+ Navigate in browser to http://localhost:8080/default.aspx
+ b) Sample Web App:
+ Navigate in browser to http://localhost:81/helloworld.aspx
+ c) Sample FTP App:
+ ftp localhost
+ user: bobbob
+ pwd: bob
+ d) Sample Remoting Client:
+ C:\Mono.AppServer\test\RemotingClient\bin\Debug\RemotingClient.exe
+
+
+
View
54 appserver/samples/App3/app.log
@@ -0,0 +1,54 @@
+2/9/2003 4:45:27 PM|System|Application Started
+2/10/2003 11:07:37 PM|System|Application Started
+2/10/2003 11:15:44 PM|System|Application Started
+2/10/2003 11:17:24 PM|System|Application Started
+2/10/2003 11:18:58 PM|System|Application Started
+2/10/2003 11:21:11 PM|System|Application Started
+2/10/2003 11:23:45 PM|System|Application Started
+2/10/2003 11:27:57 PM|System|Application Started
+2/10/2003 11:28:59 PM|System|Application Started
+2/10/2003 11:32:54 PM|System|Application Started
+2/10/2003 11:35:59 PM|System|Application Started
+2/10/2003 11:36:45 PM|System|Application Started
+2/10/2003 11:37:15 PM|System|Application Started
+2/10/2003 11:37:51 PM|System|Application Started
+2/10/2003 11:38:20 PM|System|Application Started
+2/10/2003 11:40:02 PM|System|Application Started
+2/11/2003 1:52:18 PM|System|Application Started
+2/11/2003 9:29:44 PM|System|Application Started
+2/11/2003 9:30:41 PM|System|Application Started
+2/11/2003 9:37:06 PM|System|Application Started
+2/11/2003 9:38:13 PM|System|Application Started
+2/11/2003 9:41:41 PM|System|Application Started
+2/11/2003 9:58:15 PM|System|Application Started
+2/11/2003 10:00:33 PM|System|Application Started
+2/11/2003 10:03:59 PM|System|Application Started
+2/11/2003 10:06:48 PM|System|Application Started
+2/11/2003 10:08:39 PM|System|Application Started
+2/11/2003 10:12:50 PM|System|Application Started
+2/11/2003 10:14:25 PM|System|Application Started
+2/11/2003 10:22:31 PM|System|Application Started
+2/11/2003 10:35:24 PM|System|Application Started
+2/11/2003 10:38:20 PM|System|Application Started
+2/11/2003 10:39:08 PM|System|Application Started
+2/11/2003 10:45:45 PM|System|Application Started
+2/11/2003 10:58:32 PM|System|Application Started
+2/11/2003 11:01:05 PM|System|Application Started
+2/11/2003 11:06:24 PM|System|Application Started
+2/11/2003 11:10:48 PM|System|Application Started
+2/12/2003 12:10:13 AM|System|Application Started
+2/12/2003 12:19:08 AM|System|Application Started
+2/12/2003 12:38:11 AM|System|Application Started
+2/12/2003 12:39:48 AM|System|Application Started
+2/12/2003 12:44:52 AM|System|Application Started
+2/12/2003 12:47:01 AM|System|Application Started
+2/12/2003 1:02:55 AM|System|Application Started
+2/12/2003 1:04:27 AM|System|Application Started
+2/12/2003 1:05:56 AM|System|Application Started
+2/12/2003 1:06:41 AM|System|Application Started
+2/12/2003 1:07:49 AM|System|Application Started
+2/12/2003 1:09:27 AM|System|Application Started
+2/12/2003 1:10:27 AM|System|Application Started
+2/13/2003 10:12:35 PM|System|Application Started
+2/13/2003 10:14:26 PM|System|Application Started
+2/13/2003 10:18:26 PM|System|Application Started
View
31 appserver/samples/App3/button.aspx
@@ -0,0 +1,31 @@
+<%@ Page Language="C#" %>
+<html>
+<head>
+ <script runat="server">
+ void Button1_OnClick(object Source, EventArgs e)
+ {
+ HtmlButton button = (HtmlButton) Source;
+ if (button.InnerText == "Enabled 1"){
+ Span1.InnerHtml="You deactivated Button1";
+ button.InnerText = "Disabled 1";
+ }
+ else {
+ Span1.InnerHtml="You activated Button1";
+ button.InnerText = "Enabled 1";
+ }
+ }
+
+ </script>
+</head>
+<body>
+ <h3>HtmlButton Sample</h3>
+ <form id="ServerForm" runat="server">
+ <button id=Button1 runat="server" OnServerClick="Button1_OnClick">
+ Button1
+ </button>
+ &nbsp;
+ <span id=Span1 runat="server" />
+ </form>
+</body>
+</html>
+
View
33 appserver/samples/App3/code-render.aspx
@@ -0,0 +1,33 @@
+<%@ Page Language = "C#" %>
+<html>
+<script runat="server">
+ string [] msgs = new string [] { "hi!", "hello", "hola",
+ "Ciao", "adios"};
+</script>
+<head>
+<title>Code Render</title>
+</head>
+<body>
+ <% for (int i = 0; i < 5; i++) {%>
+ <%= msgs [i] %> message number <%= i %>.
+ <p>
+ <% } %>
+ <form runat=server>
+ <% for (int i = 4; i <= 0; i--) {%>
+ <%= msgs [i] %> reverse message number <%= i %>.
+ <% } %>
+ <h3>One more calendar</h3>
+ <asp:calendar id="Calendar1"
+ Font-Name="Arial" showtitle="true"
+ runat="server">
+ <SelectedDayStyle BackColor="Blue"
+ ForeColor="Red"/>
+ <TodayDayStyle BackColor="#CCAACC"
+ ForeColor="#000000"/>
+ </asp:Calendar>
+
+ </form>
+ This should say hello: <%= msgs [1] %>
+</body>
+</html>
+
View
3  appserver/samples/App3/helloworld.aspx
@@ -0,0 +1,3 @@
+<html>
+<% response.write("Hello World!") %>
+</html>
View
27 appserver/samples/App3/index.aspx
@@ -0,0 +1,27 @@
+<%@ language="C#" %>
+<%@ Import namespace="System.IO" %>
+<html>
+<head>
+<title>Welcome to Mono XSP!</title>
+</head>
+<body>
+<h1>Welcome to Mono XSP!</h1>
+<a href="http://www.go-mono.com"><img src="mono.png" alt="http://www.go-mono.com"></a>
+<p>Here are some ASP.NET examples:</p>
+<%
+DirectoryInfo dir = new DirectoryInfo (Server.MapPath("."));
+Response.Write(dir.FullName);
+FileInfo[] files = dir.GetFiles ();
+for (int i=0; i < files.Length; i++) {
+ string FileName = Path.GetFileName(files[i].FullName);
+ if (Path.GetExtension (files[i].FullName) == ".aspx")
+ FileList.Text += "<li><a href=\"" + FileName + "\">" + FileName + "</a></li>\n";
+}
+%>
+<ul>
+<asp:Label id="FileList" runat="server" />
+</ul>
+<hr />
+<small>Generated: <%= DateTime.Now %></small>
+</html>
+
View
BIN  appserver/samples/App3/mono.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 appserver/samples/App3/web.config
@@ -0,0 +1,12 @@
+<configuration>
+ <appSettings>
+ <add key="Application.Type" value="WebApplication"/>
+ <add key="WebApplication.Port" value="81"/>
+ </appSettings>
+ <system.web>
+ <customErrors mode="Off"/>
+ <authentication mode= "None">
+ </authentication>
+ </system.web>
+</configuration>
+
View
BIN  appserver/samples/Deployment.Sample/App4.zip
Binary file not shown
View
BIN  appserver/samples/RemotingClient/App.ico
Binary file not shown
View
58 appserver/samples/RemotingClient/AssemblyInfo.cs
@@ -0,0 +1,58 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.*")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the project output directory which is
+// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
View
117 appserver/samples/RemotingClient/Form1.cs
@@ -0,0 +1,117 @@
+using System;
+using System.Drawing;
+using System.Collections;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Data;
+using System.Runtime.Remoting;
+using Mono.AppServer;
+
+namespace RemotingClient
+{
+ /// <summary>
+ /// Summary description for Form1.
+ /// </summary>
+ public class Form1 : System.Windows.Forms.Form
+ {
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.ListBox listBox1;
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.Container components = null;
+
+ public Form1()
+ {
+ //
+ // Required for Windows Form Designer support
+ //
+ InitializeComponent();
+
+ //
+ // TODO: Add any constructor code after InitializeComponent call
+ //
+ }
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ protected override void Dispose( bool disposing )
+ {
+ if( disposing )
+ {
+ if (components != null)
+ {
+ components.Dispose();
+ }
+ }
+ base.Dispose( disposing );
+ }
+
+ #region Windows Form Designer generated code
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.listBox1 = new System.Windows.Forms.ListBox();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(32, 32);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(208, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "Call \"HelloWorld\" on remote object";
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // listBox1
+ //
+ this.listBox1.Location = new System.Drawing.Point(32, 72);
+ this.listBox1.Name = "listBox1";
+ this.listBox1.Size = new System.Drawing.Size(224, 95);
+ this.listBox1.TabIndex = 1;
+ //
+ // Form1
+ //
+ this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+ this.ClientSize = new System.Drawing.Size(292, 266);
+ this.Controls.AddRange(new System.Windows.Forms.Control[] {
+ this.listBox1,
+ this.button1});
+ this.Name = "Form1";
+ this.Text = "RemoteObject";
+ this.Load += new System.EventHandler(this.Form1_Load);
+ this.ResumeLayout(false);
+
+ }
+ #endregion
+
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+
+ private void Form1_Load(object sender, System.EventArgs e)
+ {
+ RemotingConfiguration.Configure("RemotingClient.exe.config");
+ }
+
+ private void button1_Click(object sender, System.EventArgs e)
+ {
+ for (int x=0;x<100;x++)
+ {
+ RemotingObject.Class1 c1=new RemotingObject.Class1();
+ listBox1.Items.Add("Return "+x.ToString()+"="+c1.HelloWorld());
+ }
+ }
+
+ }
+}
View
102 appserver/samples/RemotingClient/Form1.resx
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 1.3
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">1.3</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1">this is my long string</data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ [base64 mime encoded serialized .NET Framework object]
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ [base64 mime encoded string representing a byte array form of the .NET Framework object]
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.3</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="$this.Name">
+ <value>Form1</value>
+ </data>
+</root>
View
126 appserver/samples/RemotingClient/RemotingClient.csproj
@@ -0,0 +1,126 @@
+<VisualStudioProject>
+ <CSHARP
+ ProjectType = "Local"
+ ProductVersion = "7.0.9466"
+ SchemaVersion = "1.0"
+ ProjectGuid = "{46C331D7-4F01-4E9D-AA99-C8FD5CE7C661}"
+ >
+ <Build>
+ <Settings
+ ApplicationIcon = "App.ico"
+ AssemblyKeyContainerName = ""
+ AssemblyName = "RemotingClient"
+ AssemblyOriginatorKeyFile = ""
+ DefaultClientScript = "JScript"
+ DefaultHTMLPageLayout = "Grid"
+ DefaultTargetSchema = "IE50"
+ DelaySign = "false"
+ OutputType = "WinExe"
+ RootNamespace = "RemotingClient"
+ StartupObject = ""
+ >
+ <Config
+ Name = "Debug"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "DEBUG;TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "true"
+ FileAlignment = "4096"
+ IncrementalBuild = "true"
+ Optimize = "false"
+ OutputPath = "bin\Debug\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ <Config
+ Name = "Release"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "false"
+ FileAlignment = "4096"
+ IncrementalBuild = "false"
+ Optimize = "true"
+ OutputPath = "bin\Release\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ </Settings>
+ <References>
+ <Reference
+ Name = "System"
+ AssemblyName = "System"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
+ />
+ <Reference
+ Name = "System.Data"
+ AssemblyName = "System.Data"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
+ />
+ <Reference
+ Name = "System.Drawing"
+ AssemblyName = "System.Drawing"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
+ />
+ <Reference
+ Name = "System.Windows.Forms"
+ AssemblyName = "System.Windows.Forms"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
+ />
+ <Reference
+ Name = "System.XML"
+ AssemblyName = "System.Xml"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
+ />
+ <Reference
+ Name = "Mono.AppServer.Core"
+ AssemblyName = "Mono.AppServer.Core"
+ HintPath = "..\..\src\Mono.AppServer.Core\bin\Debug\Mono.AppServer.Core.dll"
+ />
+ <Reference
+ Name = "RemotingObject"
+ AssemblyName = "RemotingObject"
+ HintPath = "..\RemotingObject\bin\Debug\RemotingObject.dll"
+ />
+ </References>
+ </Build>
+ <Files>
+ <Include>
+ <File
+ RelPath = "app.config"
+ BuildAction = "None"
+ />
+ <File
+ RelPath = "App.ico"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "AssemblyInfo.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "Form1.cs"
+ SubType = "Form"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "Form1.resx"
+ DependentUpon = "Form1.cs"
+ BuildAction = "EmbeddedResource"
+ />
+ </Include>
+ </Files>
+ </CSHARP>
+</VisualStudioProject>
+
View
48 appserver/samples/RemotingClient/RemotingClient.csproj.user
@@ -0,0 +1,48 @@
+<VisualStudioProject>
+ <CSHARP>
+ <Build>
+ <Settings ReferencePath = "C:\Mono.AppServer\src\Mono.AppServer.Core\bin\Debug\;C:\Mono.AppServer\test\RemotingObject\bin\Debug\" >
+ <Config
+ Name = "Debug"
+ EnableASPDebugging = "false"
+ EnableASPXDebugging = "false"
+ EnableUnmanagedDebugging = "false"
+ EnableSQLServerDebugging = "false"
+ RemoteDebugEnabled = "false"
+ RemoteDebugMachine = ""
+ StartAction = "Project"
+ StartArguments = ""
+ StartPage = ""
+ StartProgram = ""
+ StartURL = ""
+ StartWorkingDirectory = ""
+ StartWithIE = "true"
+ />
+ <Config
+ Name = "Release"
+ EnableASPDebugging = "false"
+ EnableASPXDebugging = "false"
+ EnableUnmanagedDebugging = "false"
+ EnableSQLServerDebugging = "false"
+ RemoteDebugEnabled = "false"
+ RemoteDebugMachine = ""
+ StartAction = "Project"
+ StartArguments = ""
+ StartPage = ""
+ StartProgram = ""
+ StartURL = ""
+ StartWorkingDirectory = ""
+ StartWithIE = "true"
+ />
+ </Settings>
+ </Build>
+ <OtherProjectSettings
+ CopyProjectDestinationFolder = ""
+ CopyProjectUncPath = ""
+ CopyProjectOption = "0"
+ ProjectView = "ProjectFiles"
+ ProjectTrust = "0"
+ />
+ </CSHARP>
+</VisualStudioProject>
+
View
11 appserver/samples/RemotingClient/app.config
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <system.runtime.remoting>
+ <application>
+ <client>
+ <wellknown type="RemotingObject.Class1, RemotingObject"
+ url="http://localhost:1234/MyRemoteObject" />
+ </client>
+ </application>
+ </system.runtime.remoting>
+</configuration>
View
58 appserver/samples/RemotingObject/AssemblyInfo.cs
@@ -0,0 +1,58 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.*")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the project output directory which is
+// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
View
55 appserver/samples/RemotingObject/Class1.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Diagnostics;
+
+namespace RemotingObject
+{
+
+ /// <summary>
+ /// Summary description for Class1.
+ /// </summary>
+ public class Class1 : MarshalByRefObject
+ {
+ public Class1()
+ {
+ Trace.WriteLine("Create Class1()");
+ //System.Diagnostics.Trace.Listeners.Add(new RemotingTraceListener());
+ }
+
+ public string HelloWorld()
+ {
+ Trace.WriteLine("Returning Hello World");
+ return "Hello World1";
+ }
+ }
+
+
+ /// <summary>
+ /// Summary description for TraceListener.
+ /// </summary>
+ public class RemotingTraceListener : TraceListener
+ {
+
+ public RemotingTraceListener() {}
+
+
+ public override void Write(object o)
+ {
+
+ }
+
+ public override void WriteLine(object o)
+ {
+ }
+
+ public override void Write(string s)
+ {
+ }
+
+ public override void WriteLine(string s)
+ {
+ Console.WriteLine("List: "+s);
+ }
+
+ }
+
+}
View
42 appserver/samples/RemotingObject/RemotingObject.build
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<!-- NAnt build file for RemotingObject.dll -->
+
+<project name="RemotingObject" default="build">
+ <property name="debug" value="false"/>
+
+ <target name="build">
+ <mkdir dir="../../bin/applications/remoteapp1"/>
+ <csc target="library" output="../../bin/applications/remoteapp1/RemotingObject.dll" debug="${debug}">
+ <arg value="/nowarn:1595"/>
+ <arg value="/nowarn:0067"/>
+ <arg value="/nowarn:0109"/>
+ <arg value="/nowarn:0169"/>
+ <arg value="/nowarn:0649"/>
+ <arg value="/unsafe"/>
+ <arg value="/noconfig"/>
+ <arg value="/r:System.dll"/>
+ <arg value="/r:System.Xml.dll"/>
+ <arg value="/r:System.Data.dll"/>
+ <arg value="/r:System.Web.dll"/>
+ <arg value="/r:System.Runtime.Remoting.dll"/>
+ <arg value="/r:../../lib/Mono.AppServer.Core.dll"/>
+ <sources>
+ <includes name="**/*.cs"/>
+ </sources>
+ <references>
+ <includes name="corlib.dll"/>
+ <includes name="System.dll"/>
+ <includes name="System.Data.dll"/>
+ <includes name="System.Xml.dll"/>
+ <includes name="System.Web.dll"/>
+ <includes name="System.Runtime.Remoting.dll"/>
+ <includes name="../../lib/Mono.AppServer.Core.dll"/>
+ </references>
+ </csc>
+ <copy file="app.config" tofile="../../bin/applications/remoteapp1/app.config"/>
+ </target>
+ <target name="clean">
+ <delete dir="../../bin/applications/RemotingObject" failonerror="false"/>
+ </target>
+</project>
View
93 appserver/samples/RemotingObject/RemotingObject.csproj
@@ -0,0 +1,93 @@
+<VisualStudioProject>
+ <CSHARP
+ ProjectType = "Local"
+ ProductVersion = "7.0.9466"
+ SchemaVersion = "1.0"
+ ProjectGuid = "{33F26CB0-9B68-47C1-8884-DD0A5A8D6A54}"
+ >
+ <Build>
+ <Settings
+ ApplicationIcon = ""
+ AssemblyKeyContainerName = ""
+ AssemblyName = "RemotingObject"
+ AssemblyOriginatorKeyFile = ""
+ DefaultClientScript = "JScript"
+ DefaultHTMLPageLayout = "Grid"
+ DefaultTargetSchema = "IE50"
+ DelaySign = "false"
+ OutputType = "Library"
+ RootNamespace = "RemotingObject"
+ StartupObject = ""
+ >
+ <Config
+ Name = "Debug"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "DEBUG;TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "true"
+ FileAlignment = "4096"
+ IncrementalBuild = "true"
+ Optimize = "false"
+ OutputPath = "bin\Debug\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ <Config
+ Name = "Release"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "false"
+ FileAlignment = "4096"
+ IncrementalBuild = "false"
+ Optimize = "true"
+ OutputPath = "bin\Release\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ </Settings>
+ <References>
+ <Reference
+ Name = "System"
+ AssemblyName = "System"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
+ />
+ <Reference
+ Name = "System.Data"
+ AssemblyName = "System.Data"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
+ />
+ <Reference
+ Name = "System.XML"
+ AssemblyName = "System.Xml"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
+ />
+ </References>
+ </Build>
+ <Files>
+ <Include>
+ <File
+ RelPath = "AssemblyInfo.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "Class1.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ </Include>
+ </Files>
+ </CSHARP>
+</VisualStudioProject>
+
View
48 appserver/samples/RemotingObject/RemotingObject.csproj.user
@@ -0,0 +1,48 @@
+<VisualStudioProject>
+ <CSHARP>
+ <Build>
+ <Settings ReferencePath = "" >
+ <Config
+ Name = "Debug"
+ EnableASPDebugging = "false"
+ EnableASPXDebugging = "false"
+ EnableUnmanagedDebugging = "false"
+ EnableSQLServerDebugging = "false"
+ RemoteDebugEnabled = "false"
+ RemoteDebugMachine = ""
+ StartAction = "Project"
+ StartArguments = ""
+ StartPage = ""
+ StartProgram = ""
+ StartURL = ""
+ StartWorkingDirectory = ""
+ StartWithIE = "true"
+ />
+ <Config
+ Name = "Release"
+ EnableASPDebugging = "false"
+ EnableASPXDebugging = "false"
+ EnableUnmanagedDebugging = "false"
+ EnableSQLServerDebugging = "false"
+ RemoteDebugEnabled = "false"
+ RemoteDebugMachine = ""
+ StartAction = "Project"
+ StartArguments = ""
+ StartPage = ""
+ StartProgram = ""
+ StartURL = ""
+ StartWorkingDirectory = ""
+ StartWithIE = "true"
+ />
+ </Settings>
+ </Build>
+ <OtherProjectSettings
+ CopyProjectDestinationFolder = ""
+ CopyProjectUncPath = ""
+ CopyProjectOption = "0"
+ ProjectView = "ProjectFiles"
+ ProjectTrust = "0"
+ />
+ </CSHARP>
+</VisualStudioProject>
+
View
32 appserver/samples/RemotingObject/app.config
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <appSettings>
+ <add key="Application.Type" value="RemotingApplication"/>
+ <add key="Application.Name" value="Demo Remoting App"/>
+ </appSettings>
+<system.diagnostics>
+ <trace autoflush="true" indentsize="4">
+ <listeners>
+
+ </listeners>
+ </trace>
+ <switches>
+ <add name="Switch1" value="4" />
+ <add name="Switch2" value="4" />
+ </switches>
+ </system.diagnostics>
+
+ <system.runtime.remoting>
+ <application name = "SimpleServer">
+ <service>
+ <wellknown
+ mode="SingleCall"
+ type="RemotingObject.Class1,RemotingObject"
+ objectUri="MyRemoteObject"/>
+ </service>
+ <channels>
+ <channel ref="http server" port="1234"/>
+ </channels>
+ </application>
+ </system.runtime.remoting>
+</configuration>
View
4 appserver/samples/Users/bobbob.user
@@ -0,0 +1,4 @@
+��Ʃ��ȧ5���Y �'B䲿 dϽd��F�,���?ܧp3 ��7�4)��r����ym�ۋ�����ԩo�<3��(p2����yg�/��>��
+/@��Xj�^�3 ��,�_���yCUf[TA�{8�n/��G� ��y �7��2=C�^R6c�����42�R��5�w?9_ɉ��q����&hP!��v��<LV�Ɗ��Ҳ�.���O*{��4�9� ���D~Pپ]�P���J�ɰ�a?��L9�HH���F���j�c�8�� 6�r���6��ІC��vf�C��վ�y77�nE�~��du)�o������`i��?�PA�"n]^�8�<::�UB �'9o a��k��j,|)�2|挾e�y��3��G2�l�z�V��JƗƯ�T�Vw}�b� �f ��ܞ��� g�4��!v&��yL� �[���p�]��F��?�U�HI �xh���E�o�N@�z�R�?����9џ�
+�%��+�!�b�
+U ���J�� ��y�xA�`�#�z4� ~נpC
View
BIN  appserver/samples/Users/ssmith.user
Binary file not shown
View
62 appserver/samples/WebApp/AssemblyInfo.cs
@@ -0,0 +1,62 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.*")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the "project output directory". The location of the project output
+// directory is dependent on whether you are working with a local or web project.
+// For local projects, the project output directory is defined as
+// <Project Directory>\obj\<Configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// For web projects, the project output directory is defined as
+// %HOMEPATH%\VSWebCache\<Machine Name>\<Project Directory>\obj\<Configuration>.
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
View
1  appserver/samples/WebApp/Global.asax
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="webapp.Global" %>
View
70 appserver/samples/WebApp/Global.asax.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Web;
+using System.Web.SessionState;
+
+namespace webapp
+{
+ /// <summary>
+ /// Summary description for Global.
+ /// </summary>
+ public class Global : System.Web.HttpApplication
+ {
+ public Global()
+ {
+ InitializeComponent();
+ }
+
+ protected void Application_Start(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Session_Start(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_BeginRequest(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_EndRequest(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_AuthenticateRequest(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_Error(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Session_End(Object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_End(Object sender, EventArgs e)
+ {
+
+ }
+
+ #region Web Form Designer generated code
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ }
+ #endregion
+ }
+}
+
View
42 appserver/samples/WebApp/Global.asax.resx
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<root>
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="ResMimeType">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="Version">
+ <value>1.0.0.0</value>
+ </resheader>
+ <resheader name="Reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="Writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
View
12 appserver/samples/WebApp/Web.config
@@ -0,0 +1,12 @@
+<configuration>
+ <appSettings>
+ <add key="Application.Type" value="WebApplication"/>
+ <add key="WebApplication.Port" value="81"/>
+ </appSettings>
+ <system.web>
+ <customErrors mode="Off"/>
+ <authentication mode= "None">
+ </authentication>
+ </system.web>
+</configuration>
+
View
8 appserver/samples/WebApp/app.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <appSettings>
+ <add key="Application.Type" value="WebApplication"/>
+ <add key="Application.Name" value="WebAppSample"/>
+ <add key="WebApplication.Port" value="81"/>
+ </appSettings>
+</configuration>
View
54 appserver/samples/WebApp/app.log
@@ -0,0 +1,54 @@
+2/9/2003 4:45:27 PM|System|Application Started
+2/10/2003 11:07:37 PM|System|Application Started
+2/10/2003 11:15:44 PM|System|Application Started
+2/10/2003 11:17:24 PM|System|Application Started
+2/10/2003 11:18:58 PM|System|Application Started
+2/10/2003 11:21:11 PM|System|Application Started
+2/10/2003 11:23:45 PM|System|Application Started
+2/10/2003 11:27:57 PM|System|Application Started
+2/10/2003 11:28:59 PM|System|Application Started
+2/10/2003 11:32:54 PM|System|Application Started
+2/10/2003 11:35:59 PM|System|Application Started
+2/10/2003 11:36:45 PM|System|Application Started
+2/10/2003 11:37:15 PM|System|Application Started
+2/10/2003 11:37:51 PM|System|Application Started
+2/10/2003 11:38:20 PM|System|Application Started
+2/10/2003 11:40:02 PM|System|Application Started
+2/11/2003 1:52:18 PM|System|Application Started
+2/11/2003 9:29:44 PM|System|Application Started
+2/11/2003 9:30:41 PM|System|Application Started
+2/11/2003 9:37:06 PM|System|Application Started
+2/11/2003 9:38:13 PM|System|Application Started
+2/11/2003 9:41:41 PM|System|Application Started
+2/11/2003 9:58:15 PM|System|Application Started
+2/11/2003 10:00:33 PM|System|Application Started
+2/11/2003 10:03:59 PM|System|Application Started
+2/11/2003 10:06:48 PM|System|Application Started
+2/11/2003 10:08:39 PM|System|Application Started
+2/11/2003 10:12:50 PM|System|Application Started
+2/11/2003 10:14:25 PM|System|Application Started
+2/11/2003 10:22:31 PM|System|Application Started
+2/11/2003 10:35:24 PM|System|Application Started
+2/11/2003 10:38:20 PM|System|Application Started
+2/11/2003 10:39:08 PM|System|Application Started
+2/11/2003 10:45:45 PM|System|Application Started
+2/11/2003 10:58:32 PM|System|Application Started
+2/11/2003 11:01:05 PM|System|Application Started
+2/11/2003 11:06:24 PM|System|Application Started
+2/11/2003 11:10:48 PM|System|Application Started
+2/12/2003 12:10:13 AM|System|Application Started
+2/12/2003 12:19:08 AM|System|Application Started
+2/12/2003 12:38:11 AM|System|Application Started
+2/12/2003 12:39:48 AM|System|Application Started
+2/12/2003 12:44:52 AM|System|Application Started
+2/12/2003 12:47:01 AM|System|Application Started
+2/12/2003 1:02:55 AM|System|Application Started
+2/12/2003 1:04:27 AM|System|Application Started
+2/12/2003 1:05:56 AM|System|Application Started
+2/12/2003 1:06:41 AM|System|Application Started
+2/12/2003 1:07:49 AM|System|Application Started
+2/12/2003 1:09:27 AM|System|Application Started
+2/12/2003 1:10:27 AM|System|Application Started
+2/13/2003 10:12:35 PM|System|Application Started
+2/13/2003 10:14:26 PM|System|Application Started
+2/13/2003 10:18:26 PM|System|Application Started
View
31 appserver/samples/WebApp/button.aspx
@@ -0,0 +1,31 @@
+<%@ Page Language="C#" %>
+<html>
+<head>
+ <script runat="server">
+ void Button1_OnClick(object Source, EventArgs e)
+ {
+ HtmlButton button = (HtmlButton) Source;
+ if (button.InnerText == "Enabled 1"){
+ Span1.InnerHtml="You deactivated Button1";
+ button.InnerText = "Disabled 1";
+ }
+ else {
+ Span1.InnerHtml="You activated Button1";
+ button.InnerText = "Enabled 1";
+ }
+ }
+
+ </script>
+</head>
+<body>
+ <h3>HtmlButton Sample</h3>
+ <form id="ServerForm" runat="server">
+ <button id=Button1 runat="server" OnServerClick="Button1_OnClick">
+ Button1
+ </button>
+ &nbsp;
+ <span id=Span1 runat="server" />
+ </form>
+</body>
+</html>
+
View
33 appserver/samples/WebApp/code-render.aspx
@@ -0,0 +1,33 @@
+<%@ Page Language="C#" %>
+<html>
+<script runat="server">
+ string [] msgs = new string [] { "hi!", "hello", "hola",
+ "Ciao", "adios"};
+</script>
+<head>
+<title>Code Render</title>
+</head>
+<body>
+ <% for (int i = 0; i < 5; i++) {%>
+ <%= msgs [i] %> message number <%= i %>.
+ <p>
+ <% } %>
+ <form runat=server>
+ <% for (int i = 4; i <= 0; i--) {%>
+ <%= msgs [i] %> reverse message number <%= i %>.
+ <% } %>
+ <h3>One more calendar</h3>
+ <asp:calendar id="Calendar1"
+ Font-Name="Arial" showtitle="true"
+ runat="server">
+ <SelectedDayStyle BackColor="Blue"
+ ForeColor="Red"/>
+ <TodayDayStyle BackColor="#CCAACC"
+ ForeColor="#000000"/>
+ </asp:Calendar>
+
+ </form>
+ This should say hello: <%= msgs [1] %>
+</body>
+</html>
+
View
4 appserver/samples/WebApp/helloworld.aspx
@@ -0,0 +1,4 @@
+<%@ Page %>
+<html>
+<% response.write("Hello World!") %>
+</html>
View
28 appserver/samples/WebApp/index.aspx
@@ -0,0 +1,28 @@
+<%@ Page language="C#" %>
+<%@ Import namespace="System.IO" %>
+<html>
+ <head>
+ <title>Welcome to Mono XSP!</title>
+ </head>
+ <body>
+ <h1>Welcome to Mono XSP!</h1>
+ <a href="http://www.go-mono.com"><img src="mono.png" alt="http://www.go-mono.com"></a>
+ <p>Here are some ASP.NET examples:</p>
+ <%
+DirectoryInfo dir = new DirectoryInfo (Server.MapPath("."));
+Response.Write(dir.FullName);
+FileInfo[] files = dir.GetFiles ();
+for (int i=0; i < files.Length; i++) {
+ string FileName = Path.GetFileName(files[i].FullName);
+ if (files[i].Extension == ".aspx" || files[i].Extension == ".asmx")
+ FileList.Text += "<li><a href=\"" + FileName + "\">" + FileName + "</a></li>\n";
+}
+%>
+ <ul>
+ <asp:Label id="FileList" runat="server" />
+ </ul>
+ <hr />
+ <small>Generated:
+ <%= DateTime.Now %>
+ </small>
+</html>
View
BIN  appserver/samples/WebApp/mono.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
151 appserver/samples/WebApp/webapp.csproj
@@ -0,0 +1,151 @@
+<VisualStudioProject>
+ <CSHARP
+ ProjectType = "Web"
+ ProductVersion = "7.0.9466"
+ SchemaVersion = "1.0"
+ ProjectGuid = "{1B0A7378-55C3-4F75-BF88-3FC66AF7FD4B}"
+ >
+ <Build>
+ <Settings
+ ApplicationIcon = ""
+ AssemblyKeyContainerName = ""
+ AssemblyName = "webapp"
+ AssemblyOriginatorKeyFile = ""
+ DefaultClientScript = "JScript"
+ DefaultHTMLPageLayout = "Grid"
+ DefaultTargetSchema = "IE50"
+ DelaySign = "false"
+ OutputType = "Library"
+ RootNamespace = "webapp"
+ StartupObject = ""
+ >
+ <Config
+ Name = "Debug"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "DEBUG;TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "true"
+ FileAlignment = "4096"
+ IncrementalBuild = "true"
+ Optimize = "false"
+ OutputPath = "bin\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ <Config
+ Name = "Release"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "false"
+ FileAlignment = "4096"
+ IncrementalBuild = "false"
+ Optimize = "true"
+ OutputPath = "bin\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ </Settings>
+ <References>
+ <Reference
+ Name = "System"
+ AssemblyName = "System"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
+ />
+ <Reference
+ Name = "System.Data"
+ AssemblyName = "System.Data"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
+ />
+ <Reference
+ Name = "System.Web"
+ AssemblyName = "System.Web"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Web.dll"
+ />
+ <Reference
+ Name = "System.Web.Services"
+ AssemblyName = "System.Web.Services"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Web.Services.dll"
+ />
+ <Reference
+ Name = "System.XML"
+ AssemblyName = "System.Xml"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
+ />
+ <Reference
+ Name = "System.Drawing"
+ AssemblyName = "System.Drawing"
+ HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
+ />
+ </References>
+ </Build>
+ <Files>
+ <Include>
+ <File
+ RelPath = "app.config"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "AssemblyInfo.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "button.aspx"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "code-render.aspx"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "Global.asax"
+ SubType = "Component"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "Global.asax.cs"
+ DependentUpon = "Global.asax"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "Global.asax.resx"
+ DependentUpon = "Global.asax.cs"
+ BuildAction = "EmbeddedResource"
+ />
+ <File
+ RelPath = "helloworld.aspx"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "index.aspx"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "mono.png"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "Web.config"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "webapp.vsdisco"
+ BuildAction = "None"
+ />
+ </Include>
+ </Files>
+ </CSHARP>
+</VisualStudioProject>
+
View
4 appserver/samples/WebApp/webapp.csproj.webinfo
@@ -0,0 +1,4 @@
+<VisualStudioUNCWeb>
+ <Web URLPath = "http://localhost/webapp/webapp.csproj" />
+</VisualStudioUNCWeb>
+
View
9 appserver/samples/WebApp/webapp.vsdisco
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<dynamicDiscovery xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">
+<exclude path="_vti_cnf" />
+<exclude path="_vti_pvt" />
+<exclude path="_vti_log" />
+<exclude path="_vti_script" />
+<exclude path="_vti_txt" />
+<exclude path="Web References" />
+</dynamicDiscovery>
View
BIN  appserver/src/AppServerConsole/App.ico
Binary file not shown
View
35 appserver/src/AppServerConsole/AppServerConsole.build
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<!-- NAnt build file for AppServerConsole.exe -->
+
+<project name="AppServerConsole" default="build">
+ <target name="build">
+ <csc target="exe" output="../../lib/AppServerConsole.exe" debug="${debug}">
+ <arg value="/nowarn:1595"/>
+ <arg value="/nowarn:0067"/>
+ <arg value="/nowarn:0109"/>
+ <arg value="/nowarn:0169"/>
+ <arg value="/nowarn:0649"/>
+ <arg value="/unsafe"/>
+ <arg value="/noconfig"/>
+ <arg value="/r:System.dll"/>
+ <arg value="/r:System.Xml.dll"/>
+ <arg value="/r:../../lib/Mono.AppServer.Security.dll"/>
+ <arg value="/r:../../lib/Mono.AppServer.Core.dll"/>
+ <sources>
+ <includes name="**/*.cs"/>
+ </sources>
+ <references>
+ <includes name="corlib.dll"/>
+ <includes name="System.dll"/>
+ <includes name="System.Xml.dll"/>
+ <includes name="../../lib/Mono.AppServer.Security.dll"/>
+ <includes name="../../lib/Mono.AppServer.Core.dll"/>
+ </references>
+ </csc>
+ <copy file="app.config" tofile="../../lib/AppServerConsole.exe.config"/>
+ </target>
+ <target name="clean">
+ <delete file="../../lib/AppServerConsole.exe" failonerror="false"/>
+ </target>
+</project>
View
111 appserver/src/AppServerConsole/AppServerConsole.csproj
@@ -0,0 +1,111 @@
+<VisualStudioProject>
+ <CSHARP
+ ProjectType = "Local"
+ ProductVersion = "7.0.9466"
+ SchemaVersion = "1.0"
+ ProjectGuid = "{DFF2FC9C-CC11-44A9-AEFB-8354E639367A}"
+ >
+ <Build>
+ <Settings
+ ApplicationIcon = "App.ico"
+ AssemblyKeyContainerName = ""
+ AssemblyName = "AppServerConsole"
+ AssemblyOriginatorKeyFile = ""
+ DefaultClientScript = "JScript"
+ DefaultHTMLPageLayout = "Grid"
+ DefaultTargetSchema = "IE50"
+ DelaySign = "false"
+ OutputType = "Exe"
+ RootNamespace = "RemotingServerConsole"
+ StartupObject = ""
+ >
+ <Config
+ Name = "Debug"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "DEBUG;TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "true"
+ FileAlignment = "4096"
+ IncrementalBuild = "true"
+ Optimize = "false"
+ OutputPath = "..\..\bin\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ <Config
+ Name = "Release"
+ AllowUnsafeBlocks = "false"
+ BaseAddress = "285212672"
+ CheckForOverflowUnderflow = "false"
+ ConfigurationOverrideFile = ""
+ DefineConstants = "TRACE"
+ DocumentationFile = ""
+ DebugSymbols = "false"
+ FileAlignment = "4096"
+ IncrementalBuild = "false"
+ Optimize = "true"
+ OutputPath = "bin\Release\"
+ RegisterForComInterop = "false"
+ RemoveIntegerChecks = "false"
+ TreatWarningsAsErrors = "false"
+ WarningLevel = "4"
+ />
+ </Settings>
+ <References>
+ <Reference
+ Name = "System"
+ AssemblyName = "System"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
+ />
+ <Reference
+ Name = "System.Data"
+ AssemblyName = "System.Data"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
+ />
+ <Reference
+ Name = "System.XML"
+ AssemblyName = "System.Xml"
+ HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
+ />
+ <Reference
+ Name = "Mono.AppServer.Core"
+ Project = "{CAED6F27-C12F-4EB5-B314-263DB2132ED4}"
+ Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
+ />
+ <Reference
+ Name = "Mono.AppServer.Security"
+ Project = "{63DE086F-9D6F-4649-B2EF-8005E98E7359}"
+ Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
+ />
+ </References>
+ </Build>
+ <Files>
+ <Include>
+ <File
+ RelPath = "app.config"
+ BuildAction = "None"
+ />
+ <File
+ RelPath = "App.ico"
+ BuildAction = "Content"
+ />
+ <File
+ RelPath = "AssemblyInfo.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
+ RelPath = "main.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ </Include>
+ </Files>
+ </CSHARP>
+</VisualStudioProject>
+
View
48 appserver/src/AppServerConsole/AppServerConsole.csproj.user
@@ -0,0 +1,48 @@
+<VisualStudioProject>
+ <CSHARP>
+ <Build>
+ <Settings ReferencePath = "C:\Mono.AppServer\utils\031SharpZipLib\" >