[Mono-list] XSP & .Net runtime

Urs Muff umuff@quark.com
Thu, 19 Jun 2003 08:08:04 -0600


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_01C3366C.33AEAFC0
Content-Type: text/plain

I just tried to compile/use the XSP http/aspx server under the MS runtime,
and it compiles.  But when I try to run it I get a strange exception when
processing a request: http://localhost:8080/index.aspx
<http://localhost:8080/index.aspx> 

A first chance exception of type 'System.ArgumentException' occurred in
mscorlib.dll
Additional information: Token cannot be zero.

This is after the following is already processed [WebTrace output]:
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: C:\cygwin\CVS-Repositories\go-mono.com\xsp\test
Virtual directory: /
Server started.
Accepted connection.
verb: GET
path: /index.aspx
queryString:
protocol: HTTP/1.1
Host: localhost:8080
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705; .NET CLR 1.1.4322)
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/groove.preview,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
*/*
Accept-Language: en-us
GetFilePath()
GetFilePath()
GetHttpVerbName()
GetKnownRequestHeader(39) -> User-Agent
GetServerVariable()
GetServerVariable()

This is with no stack context other then MonoWorkerRequest.ProcessRequest
calling HttpRuntime.ProcessRequest(this).

I know that this is not really a mono topic and you might not care about
this problem.  But the reason I'm bringing this up is the following: XSP
looks fairly independent of the runtime, and this makes me believe that
there is an incompatibility in the mono runtime regarding either the
HttpRuntime or the SimpleHttpRequest implementation that are part of the
standard System.Web assembly.  If this is the case, others might have
similar issues with the mono runtime as I have now with the .Net runtime.  I
hope you understand the point that I'm trying to make.

If someone of either the System.Web or the XSP team wants to contact me, I
can try to help debug the problem.  (All I did is making a VS .Net 2003
project including all .cs files and compiling it under the 1.1 framework).
Note that the MS ASP.Net hosting implementation assumes that the hosting
type assembly (as given argument to CreateApplicationHost) can be physically
found under the ./bin directory and will throw a FileIOExpection otherwise.
(That implies that you have to copy the XSP assembly under that test/bin
directory before executing).

- Urs C. Muff
Software Architect	- Research Lab
Quark Inc.
UMuff@Quark.Com    	- X6360
+1 (303) 894 3360
CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended recipient,
or a person responsible for delivering it to the intended recipient, you are
hereby notified that you must not read this transmission and that any
disclosure, copying, printing, distribution, or use of the information
contained or attached to this transmission is STRICTLY PROHIBITED. If you
have received this transmission in error, please immediately notify the
sender by telephone +1 (303) 894-3360 or return e-mail message
umuff@quark.com <mailto:umuff@quark.com>  and delete the original
transmission, its attachments, and any copies without reading or saving in
any manner. Thank you.



------_=_NextPart_001_01C3366C.33AEAFC0
Content-Type: text/html
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=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>XSP &amp; .Net runtime</TITLE>
</HEAD>
<BODY>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I just tried to =
compile/use the XSP http/aspx server under the MS runtime, and it =
compiles.</FONT>&nbsp;<FONT SIZE=3D2 FACE=3D"Arial"> But when I try to =
run it I get a strange exception when processing a request:</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"></FONT> <A =
HREF=3D"http://localhost:8080/index.aspx"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 =
FACE=3D"Arial">http://localhost:8080/index.aspx</FONT></U></A></P>

<P ALIGN=3DLEFT><FONT SIZE=3D1 FACE=3D"Courier New">A first chance =
exception of type 'System.ArgumentException' occurred in =
mscorlib.dll</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D1 FACE=3D"Courier New">Additional =
information: Token cannot be zero.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">This is after the =
following is already processed [WebTrace output]:</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Listening on port: =
8080</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Listening on address: =
0.0.0.0</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Root directory: =
C:\cygwin\CVS-Repositories\go-mono.com\xsp\test</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Virtual directory: =
/</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Server =
started.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Accepted =
connection.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">verb: GET</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">path: =
/index.aspx</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">queryString:</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">protocol: =
HTTP/1.1</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Host: =
localhost:8080</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Accept-Encoding: gzip, =
deflate</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Connection: =
Keep-Alive</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">User-Agent: Mozilla/4.0 =
(compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR =
1.1.4322)</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Accept: image/gif, =
image/x-xbitmap, image/jpeg, image/pjpeg, =
application/x-shockwave-flash, application/groove.preview, =
application/vnd.ms-excel, application/vnd.ms-powerpoint, =
application/msword, */*</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Courier">Accept-Language: =
en-us</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetFilePath()</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetFilePath()</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetHttpVerbName()</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetKnownRequestHeader(39) -&gt; User-Agent</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetServerVariable()</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Courier">GetServerVariable()</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">This is with no stack =
context other then</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">MonoWorkerRequest.ProcessRequest calling =
HttpRuntime.ProcessRequest(this).</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I know that this is not =
really a mono topic and you might not care about this problem.&nbsp; =
But the reason I</FONT><FONT SIZE=3D2 FACE=3D"Arial">'</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">m bringing this up is the following: XSP looks =
fairly independent of the runtime, and this makes me believe that there =
is an</FONT> <FONT SIZE=3D2 FACE=3D"Arial">incompatibility</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"></FONT> <FONT SIZE=3D2 FACE=3D"Arial">in the =
mono runtime regarding either the HttpRuntime or the SimpleHttpRequest =
implementation that are part of the standard System.Web assembly.</FONT>=
&nbsp;<FONT SIZE=3D2 FACE=3D"Arial"> If this is the case, others might =
have similar issues with the mono runtime as I have now with the .Net =
runtime.</FONT><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; I hope you =
understand the point that I</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">'</FONT><FONT SIZE=3D2 FACE=3D"Arial">m trying to =
make.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">If someone of either the =
System.Web or the XSP team want</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">s</FONT><FONT SIZE=3D2 FACE=3D"Arial"> to contact me, I =
can try to help debug the problem</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">.&nbsp; (All I did is making a VS .Net 2003 project =
including all .cs files</FONT> <FONT SIZE=3D2 FACE=3D"Arial">and =
compiling it under the 1.1 framework).&nbsp; Note that</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"> the MS ASP.Net hosting implementation assumes =
that the hosting type assembly (as given argument to =
CreateApplicationHost)</FONT> <FONT SIZE=3D2 FACE=3D"Arial">can be =
physically</FONT><FONT SIZE=3D2 FACE=3D"Arial"></FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">found</FONT> <FONT SIZE=3D2 FACE=3D"Arial">under</FONT> =
<FONT SIZE=3D2 FACE=3D"Arial">the ./bin directory and will throw a =
FileIOExpection otherwise.&nbsp; (That implies that you have to copy =
the XSP assembly under that test/bin directory before =
executing).</FONT></P>

<P ALIGN=3DLEFT><B></B><A NAME=3D"_MailAutoSig"><B><FONT =
COLOR=3D"#003300" SIZE=3D2 FACE=3D"Garamond">- Urs C. =
Muff</FONT></B></A><BR>
<FONT COLOR=3D"#003300" SIZE=3D2 FACE=3D"Garamond">Software =
Architect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><B></B><B> <FONT =
COLOR=3D"#003300" SIZE=3D2 FACE=3D"Garamond">- Research =
Lab</FONT></B><U><BR>
</U><FONT COLOR=3D"#003300" SIZE=3D2 FACE=3D"Garamond">Quark =
Inc.</FONT><U></U></P>

<P ALIGN=3DLEFT><U><FONT COLOR=3D"#003300" SIZE=3D2 =
FACE=3D"Garamond">UMuff@Quark.Com</FONT></U><B></B><B><FONT =
COLOR=3D"#003300" SIZE=3D2 =
FACE=3D"Garamond">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - =
X6360</FONT></B><BR>
<B></B><B><FONT COLOR=3D"#003300" SIZE=3D2 FACE=3D"Garamond">+1 (303) =
894 3360</FONT></B></P>

<P ALIGN=3DLEFT><FONT COLOR=3D"#003300" SIZE=3D1 =
FACE=3D"Arial">CONFIDENTIALITY NOTICE</FONT></P>

<P ALIGN=3DLEFT><FONT COLOR=3D"#003300" SIZE=3D1 FACE=3D"Arial">This =
e-mail transmission and any documents, files, or previous e-mail</FONT> =
<FONT COLOR=3D"#003300" SIZE=3D1 FACE=3D"Arial">messages appended or =
attached to it, may contain information that is confidential or legally =
privileged. If you are not the intended recipient, or a person =
responsible for delivering it to the intended recipient, you are hereby =
notified that you must not</FONT> <FONT COLOR=3D"#003300" SIZE=3D1 =
FACE=3D"Arial">r</FONT><FONT COLOR=3D"#003300" SIZE=3D1 =
FACE=3D"Arial">ead this transmission and that any disclosure, copying, =
printing, distribution, or use of the information contained or attached =
to this transmission is STRICTLY PROHIBITED. If you have received this =
transmission in error, please immediately notify the sen</FONT><FONT =
COLOR=3D"#003300" SIZE=3D1 FACE=3D"Arial">d</FONT><FONT =
COLOR=3D"#003300" SIZE=3D1 FACE=3D"Arial">er by telephone +1 (303) =
894-3360 or return e-mail message</FONT> <A =
HREF=3D"mailto:umuff@quark.com"><U><FONT COLOR=3D"#003300" SIZE=3D1 =
FACE=3D"SimSun">umuff@quark.com</FONT></U></A><FONT COLOR=3D"#003300" =
SIZE=3D1 FACE=3D"Arial"> and delete the original transmission, its =
attachments, and any copies without reading or saving in any manner. =
Thank you.</FONT></P>

<P ALIGN=3DLEFT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C3366C.33AEAFC0--