[Mono-dev] [Mono-patches] r68496 - in trunk/mcs/class/System.Web:System.Web.UI Test/System.Web.UI
Gonzalo Paniagua Javier
gonzalo at novell.com
Tue Nov 28 11:22:14 EST 2006
On Tue, 2006-11-28 at 04:31 -0800, Igor Zelmanovich wrote:
> Gonzalo,
>
> OpenFile may be implemented this way:
>
> protected internal Stream OpenFile (string path)
> {
> return System.Web.Hosting.VirtualPathProvider.OpenFile (path);
> }
>
> In this case the corresponding test fails because
> DefaultVirtualPathProvider.GetFile not supports application relative
> path (such as "~/MyPage.aspx").
That means that there's something else to Control.OpenFile, not that
using the virtual path provider in OpenFile is wrong (easy to test, just
add your own virtualpathprovider and call Control.OpenFile with a few
different values. You can also see it in the stacktraces from MS
runtime). Also it is documented to work on physical and virtual paths,
which will be a problem on linux as there's no way of saying that a
given path is physical or virtual without checking for the file to
exist.
-Gonzalo
More information about the Mono-devel-list
mailing list