[Mono-list] Re: [Mono-devel-list] Problem w/ System.Web.UI.WebControls.Xml (Modified by Arne Claassen)

Rafael Teixeira monoman@gmail.com
Mon, 9 Aug 2004 11:14:14 -0300


Hi Arne,

Please post a bug case at
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Class%20Libraries
if you haven't done so, yet. So we don't get your report lost in the list noise.

Thanks,

On Sun, 8 Aug 2004 19:10:14 -0700, Arne Claassen <mono@claassen.net> wrote:
> First post to this list (originally posted to mono-list until i
> realized a second later that i wanted to post to mono-devel-list). I
> develop in VS.NET on windows for my dayjob, but trying to use Mono on
> Fedora Core 1 for my personal projects.
> 
> I seem to have come across a bug in System.Web.UI.WebControls.Xml, but
> wanted to post here first to see if it's not a configuration issue.
> 
> I have an XML webcontrol in foo/bar.aspx named Xml1. I initialize as
> 
> Xml1.DocumentSource = "bar.xml";
> Xml1.TransformSource = "bar.xsl";
> 
> referencing foo/bar.xml and foo/bar.xsl by relative URLs. This works
> fine under IIS where the control appears to use MapPath to determine
> the proper physical file path.
> 
> Using mono 1.0 with xsp and mod_mono under apache 1.3 on fedora core 1,
> i get an error that starts like this:
> -----------------------
> Server error in '/foo' application
> Description: Error processing request.
> 
> Error Message: HTTP 500.
> 
> Stack Trace:
> 
> System.IO.FileNotFoundException: Could not find file "/bar.xml".
> [etc.]
> -----------------------
> 
> However if i call
> 
> HttpContext.Current.Request.MapPath("bar.xml");
> 
> I get a proper file path and i can read the file with a Stream Reader.
> 
> thanks,
> arne


-- 
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing 
   Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"