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
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.
[EMAIL PROTECTED] - 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 [EMAIL PROTECTED] and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.
