[Mono-list] xsp/mod_mono setup

Kenneth Benson sdhmis@sheratondover.com
Wed, 5 Nov 2003 14:02:22 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3A3CF.57FE57B0
Content-Type: text/plain;
	charset="iso-8859-1"

Below is the output of setting up xsp and mod_mono per the install file
in mod_mono.....

=======================================
<%@ language="C#" %> <%@ Import namespace="System.IO" %> 
Welcome to Mono XSP!
http://www.go-mono.com

Here are some ASP.NET examples:

<% DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName
(Request.PhysicalPath)); FileInfo[] files = dir.GetFiles ();
StringBuilder sb = new StringBuilder (); Hashtable styles = new
Hashtable (); styles [".aspx"] = "background: #ffffff"; styles [".ashx"]
= "background: #00cccc"; styles [".asmx"] = "background: #eeee00"; for
(int i=0; i < files.Length; i++) { string fileName =
Path.GetFileName(files[i].FullName); string extension =
Path.GetExtension (files[i].FullName); if (styles.Contains (extension))
{ sb.AppendFormat ("
  * {0}
\n", fileName, styles [extension]); } } FileList.Text = sb.ToString ();
%> 

________________________________________________________________________
Generated: <%= DateTime.Now %>
===================================

That is just the way it appeared in the browser, altho the "Welcome to
Mono XSP! " was in a larger font size. Here is the page source....

===================================
<%@ 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 (Path.GetDirectoryName
(Request.PhysicalPath));
FileInfo[] files = dir.GetFiles ();
StringBuilder sb = new StringBuilder ();
Hashtable styles = new Hashtable ();
styles [".aspx"] = "background: #ffffff";
styles [".ashx"] = "background: #00cccc";
styles [".asmx"] = "background: #eeee00";
for (int i=0; i < files.Length; i++) {
	string fileName = Path.GetFileName(files[i].FullName);
	string extension = Path.GetExtension (files[i].FullName);
	if (styles.Contains (extension)) {
		sb.AppendFormat ("<li><a style=\"{1}\"
href=\"{0}\">{0}</a></li>\n", fileName, styles [extension]);
	}
}
FileList.Text = sb.ToString ();
%>
<ul>
<asp:Label id="FileList" runat="server" />
</ul>
<hr />
<small>Generated: <%= DateTime.Now %></small>
</html>
============================================

Can anyone help me figure out what is going wrong?
Thanks in advance!

Ken Benson

--------------------------------------
It does not take a majority to prevail, but rather an irate, tireless
minority keen to set brushfires in the peoples' mind.
-Samuel Adams

"Government, like fire, is our most useful servant, if fully controlled by
us, its citizens! And government, exactly like fire, becomes our most
destructive master, if not fully controlled by the open majority of its
constructive, working citizens!" 
-George Washington  

------_=_NextPart_001_01C3A3CF.57FE57B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>xsp/mod_mono setup</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Below is the output of setting up xsp and mod_mono =
per the install file</FONT>
<BR><FONT SIZE=3D2>in mod_mono.....</FONT>
</P>

<P><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2>&lt;%@ language=3D&quot;C#&quot; %&gt; &lt;%@ Import =
namespace=3D&quot;System.IO&quot; %&gt; </FONT>
<BR><FONT SIZE=3D2>Welcome to Mono XSP!</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.go-mono.com" =
TARGET=3D"_blank">http://www.go-mono.com</A></FONT>
</P>

<P><FONT SIZE=3D2>Here are some ASP.NET examples:</FONT>
</P>

<P><FONT SIZE=3D2>&lt;% DirectoryInfo dir =3D new DirectoryInfo =
(Path.GetDirectoryName</FONT>
<BR><FONT SIZE=3D2>(Request.PhysicalPath)); FileInfo[] files =3D =
dir.GetFiles ();</FONT>
<BR><FONT SIZE=3D2>StringBuilder sb =3D new StringBuilder (); Hashtable =
styles =3D new</FONT>
<BR><FONT SIZE=3D2>Hashtable (); styles [&quot;.aspx&quot;] =3D =
&quot;background: #ffffff&quot;; styles [&quot;.ashx&quot;]</FONT>
<BR><FONT SIZE=3D2>=3D &quot;background: #00cccc&quot;; styles =
[&quot;.asmx&quot;] =3D &quot;background: #eeee00&quot;; for</FONT>
<BR><FONT SIZE=3D2>(int i=3D0; i &lt; files.Length; i++) { string =
fileName =3D</FONT>
<BR><FONT SIZE=3D2>Path.GetFileName(files[i].FullName); string =
extension =3D</FONT>
<BR><FONT SIZE=3D2>Path.GetExtension (files[i].FullName); if =
(styles.Contains (extension))</FONT>
<BR><FONT SIZE=3D2>{ sb.AppendFormat (&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp; * {0}</FONT>
<BR><FONT SIZE=3D2>\n&quot;, fileName, styles [extension]); } } =
FileList.Text =3D sb.ToString ();</FONT>
<BR><FONT SIZE=3D2>%&gt; </FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
_________</FONT>
<BR><FONT SIZE=3D2>Generated: &lt;%=3D DateTime.Now %&gt;</FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
</P>

<P><FONT SIZE=3D2>That is just the way it appeared in the browser, =
altho the &quot;Welcome to</FONT>
<BR><FONT SIZE=3D2>Mono XSP! &quot; was in a larger font size. Here is =
the page source....</FONT>
</P>

<P><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2>&lt;%@ language=3D&quot;C#&quot; %&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;%@ Import namespace=3D&quot;System.IO&quot; =
%&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;html&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;head&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;title&gt;Welcome to Mono =
XSP!&lt;/title&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/head&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;body&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;h1&gt;Welcome to Mono XSP!&lt;/h1&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;a href=3D&quot;<A =
HREF=3D"http://www.go-mono.com" =
TARGET=3D"_blank">http://www.go-mono.com</A>&quot;&gt;&lt;img =
src=3D&quot;mono.png&quot; alt=3D&quot;<A =
HREF=3D"http://www.go-mono.com" =
TARGET=3D"_blank">http://www.go-mono.com</A>&quot;&gt;&lt;/a&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;p&gt;Here are some ASP.NET =
examples:&lt;/p&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;%</FONT>
<BR><FONT SIZE=3D2>DirectoryInfo dir =3D new DirectoryInfo =
(Path.GetDirectoryName (Request.PhysicalPath));</FONT>
<BR><FONT SIZE=3D2>FileInfo[] files =3D dir.GetFiles ();</FONT>
<BR><FONT SIZE=3D2>StringBuilder sb =3D new StringBuilder ();</FONT>
<BR><FONT SIZE=3D2>Hashtable styles =3D new Hashtable ();</FONT>
<BR><FONT SIZE=3D2>styles [&quot;.aspx&quot;] =3D &quot;background: =
#ffffff&quot;;</FONT>
<BR><FONT SIZE=3D2>styles [&quot;.ashx&quot;] =3D &quot;background: =
#00cccc&quot;;</FONT>
<BR><FONT SIZE=3D2>styles [&quot;.asmx&quot;] =3D &quot;background: =
#eeee00&quot;;</FONT>
<BR><FONT SIZE=3D2>for (int i=3D0; i &lt; files.Length; i++) {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>string =
fileName =3D Path.GetFileName(files[i].FullName);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>string =
extension =3D Path.GetExtension (files[i].FullName);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>if =
(styles.Contains (extension)) {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>sb.AppendFormat (&quot;&lt;li&gt;&lt;a =
style=3D\&quot;{1}\&quot; =
href=3D\&quot;{0}\&quot;&gt;{0}&lt;/a&gt;&lt;/li&gt;\n&quot;, fileName, =
styles [extension]);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>}</FONT>
<BR><FONT SIZE=3D2>}</FONT>
<BR><FONT SIZE=3D2>FileList.Text =3D sb.ToString ();</FONT>
<BR><FONT SIZE=3D2>%&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;ul&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;asp:Label id=3D&quot;FileList&quot; =
runat=3D&quot;server&quot; /&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/ul&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;hr /&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;small&gt;Generated: &lt;%=3D DateTime.Now =
%&gt;&lt;/small&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/html&gt;</FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</F=
ONT>
</P>

<P><FONT SIZE=3D2>Can anyone help me figure out what is going =
wrong?</FONT>
<BR><FONT SIZE=3D2>Thanks in advance!</FONT>
</P>

<P><FONT SIZE=3D2>Ken Benson</FONT>
</P>

<P><FONT SIZE=3D2>--------------------------------------</FONT>
<BR><FONT SIZE=3D2>It does not take a majority to prevail, but rather =
an irate, tireless minority keen to set brushfires in the peoples' =
mind.</FONT></P>

<P><FONT SIZE=3D2>-Samuel Adams</FONT>
</P>

<P><FONT SIZE=3D2>&quot;Government, like fire, is our most useful =
servant, if fully controlled by us, its citizens! And government, =
exactly like fire, becomes our most destructive master, if not fully =
controlled by the open majority of its constructive, working =
citizens!&quot; </FONT></P>

<P><FONT SIZE=3D2>-George Washington&nbsp; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C3A3CF.57FE57B0--