[Mono-list] bug in System.Web.HttpRuntimeProcessRequest()?

Gert Driesen gert.driesen@pandora.be
Thu, 8 May 2003 05:44:59 +0200


I ran into this too, I think it's a bug in the FileInfo.DirectoryName
property (at least that where I encoutered the issue).

I hope to find time to look into it later today, and file a bug.

Gert

----- Original Message ----- 
From: "Henrique Seganfredo" <henrique@seganfredo.com>
To: <mono-list@lists.ximian.com>
Sent: Thursday, May 08, 2003 5:31 AM
Subject: [Mono-list] bug in System.Web.HttpRuntimeProcessRequest()?


> Folks,
>
> I am not sure about, just have tried to run XSP (0.4), compile it under
> cygwin (using mono (0.24)/win32 (XP Home)here) and when I perform any
> request I get the following message
>
> ----------------
> Error in '/' Application
>
> Error
>
> Description: Error processing request.
>
> Error Message:
>
> Stack Trace: System.IO.DirectoryNotFoundException: Directory
> 'C:\C:\cygwin\xsp-0.4\server\test' not found.in <0x00194> 00
> System.IO.StreamReader:.ctor (string,System.Text.Encoding,bool,int)in
> <0x0001d> 00 System.IO.StreamReader:.ctor (string,System.Text.Encoding)in
> <0x00049> 00 System.Web.Compilation.AspGenerator:InitParser (string)in
> <0x0004c> 00 System.Web.Compilation.AspGenerator:GetCompiledType ()in
> <0x00071> 00
System.Web.UI.ApplicationFileParser:GetCompiledApplicationType
> (string,System.Web.HttpContext)in <0x0003a> 00
> System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)in
> <0x00031> 00 System.Web.HttpApplicationFactory:InitializeFactory
> (System.Web.HttpContext)in <0x00076> 00
> System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)in
> <0x00151> 00 System.Web.HttpRuntime:InternalExecuteRequest
> (System.Web.HttpWorkerRequest)
>
> -----------------
>
> looking to the XSP source code, I see the MonoWorkerRequest class that has
> the string mappedPath, this string shows up as
>
> "\cygwin\xsp-0.4\server\test\index.aspx"
>
> just before the method ProcessRequest() calls HttpRuntime.ProcessRequest
> (this);
>
> So I guess HttpRuntime.ProcessRequest()  (or something below)  adds the
> doubled "C:\" on the file path and causes the error...
>
> Anybody here tried sucessfully XSP on Win32?
>
> Henrique Seganfredo
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>