[Mono-dev] AppDomain.RelativeSearchPath is faulty?

Dax Dax at daxxfiles.net
Sat Dec 29 17:00:01 EST 2007


very recently I discovered something kind of odd. Please save this as
Default.aspx and run it - click the button.

<script runat="server">
  protected void bar(object sender, EventArgs e) {
    btn.Text = AppDomain.CurrentDomain.RelativeSearchPath;
<form runat="server">
  <asp:Button ID="btn" runat="server" OnClick="bar" />

You will see, that the button's Text is "~/Bin;~/bin", ~ replaced by the
directory your Default.aspx is saved in. I have already tried to trace
it, but I got lost somewhere in the runtime...


More information about the Mono-devel-list mailing list