[Mono-devel-list] SimpleWorkerRequest.MapPath problem

Gonzalo Paniagua Javier gonzalo at ximian.com
Thu Mar 18 17:37:33 EST 2004


El jue, 18-03-2004 a las 07:00, Aleksey Demakov escribió:
> Hi all,
> 
> After one of the cvs updates our server that hosts mono runtime for 
> serving aspx pages stopped to see Web.config files. My research
> shown that the root cause of the problem is that
> WebDefaultConfig.GetConfigFromFileName() calls (indirectly)
> System.Web.Hosting.SimpleWorkerRequest.MapPath() for the path
> that is equal to app virtual dir and MapPath() returns null instead
> of phisical dir as GetConfigFromFileName() probably expects.
> 
> I wrote a simple test that can be used to verify how MS ASP.NET
> SimpleWorkerRequest works and found that it returns phisical
> dir in this case. So I patched mono's SimpleWorkerRequest
> to behave similary.
> 
> Note that to run the test under MS.NET the compiled exe has to
> be copied into the bin subdir which you should create in your
> working directory otherwise ApplicationHost won't find it.

Patch applied.

Thanks!

-Gonzalo





More information about the Mono-devel-list mailing list