[Mono-devel-list] SimpleWorkerRequest.MapPath problem

Aleksey Demakov avd at openlinksw.com
Thu Mar 18 07:00:53 EST 2004


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.

Regards,
Aleksey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040318/3a835146/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SimpleWorkerRequest.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040318/3a835146/attachment-0001.pl 


More information about the Mono-devel-list mailing list