[Mono-list] XSP and "~/" resolution

Stuart Ballard sballard@netreach.com
Wed, 04 Feb 2004 12:40:28 -0500

I'm using the debian packages of the January 14th mono snapshot. Using 
XSP directly because current libapache-mod-mono is not yet packaged.

There appears to be a problem with resolution of "application relative" 
URLS - ie, urls that start with "~/". In XSP, the "~/" seems to be 
ignored entirely, and "~/Foo/Bar.ascx" is interpreted exactly as if it 
were "Foo/Bar.ascx".

The specific case that I'm encountering is when the URL is used as the 
Src attribute of a @Register directive - I can't confirm or deny whether 
the problem occurs for other uses of "~/", but it seems highly possible 
that it would.

Around 0.28 I was able to get libapache-mod-mono working and did not 
have this problem, so it's either a regression or specific to standalone 

Even with that old libapache-mod-mono I had some problems with these 
URLs: sometimes the ~ would get passed through to the browser rather 
than being interpreted server-side. I intended to upgrade to a more 
recent version to test whether this problem was fixed before doing 
specific testing of when it happened, but I think it was either in the 
NavigateUrl attribute of asp:HyperLink or in the argument to 

If I remember rightly, IBuySpy portal makes heavy use of these kind of 
URLs, and I'd be surprised if it works out of the box with this bug.

Anyone know if this area of code has been changed since January 14th? 
Could this be fixed in 0.30?


Stuart Ballard, Senior Web Developer
NetReach, Inc.
(215) 283-2300, ext. 126