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

Arne Claassen mono at claassen.net
Sun Aug 8 22:10:14 EDT 2004


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




More information about the Mono-devel-list mailing list