[Mono-devel-list] Problems with IO.Directory.Exists and AppDomain.CurrentDomain.BaseDirectory

Ivan Hawkes blackhawk at ivanhawkes.com
Sat Jul 5 15:45:08 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The wheels of conversion move onwards and I am now at the next problem. I have 
a sample ASPX page that calls a library which is also shared with my little 
simpletest.exe program. The simpletest.exe program runs the code fine and the 
ASPX doesn't. It comes down to a difference in the way they are implementing 
AppDomain.CurrentDomain.BaseDirectory.

simpletest.exe returns a result similar to this:

/home/ivan/simpletest/

and ASPX program returns this:

file:///home/ivan/christinahawkes/

As you can see, the ASPX program has pre-pended the dir with file://. This may 
or may not be valid behaviour since it's hard to tell from the MS docs. The 
problem comes in when I make a call to IO.Directory.Exists. The first form is 
acceptable and returns a correct result, but the one starting with file:/// 
is not acceptable and returns a false, even though that dir actually exists.

Is this a problem with the runtime? Should IO.Directory.Exists be able to 
parse file:// etc?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQIVAwUBPwcqxPr1e7bH1pzBAQKX4g//XPwto637NJU1nQ5eXL9IRRn8bd2yK6Fw
7L97wGjRubfMYSvTvniVMzURALDOc1GvtDX6dd19QjW4xZwlvVl2czoSLdXtCz8K
HaoU8cPLmz8ODGXknrWIoxzBWMJbCOEJtfdsN0AddZwqcri3K696EBNU9VElful6
5lws6piif8AvEbSCuTm7Evs/y17RqRl5osXqtLRfC+sJ6khPWhmkQYeKeTO5xVI1
J6v4grcDgmD/6zzhyJI5qfj83vRhssgie7eL0iBAALhPJsa52ia4T8UHCqsVJ/4k
xtvQon1OoRYimFLFlwgPCe9OJzB02v9ppB/j8FMTAaVl5rSlkp0qJIC7JPcgzhj3
x6y0MQWOKp3i3JIBsFbBJBKkZsr1Z62l0sbTq42jEMjfOWoTDhcxnL9KvhBBfTOs
Tp0olNC3FhPfpLgajbIGfJ1JWCG78BAjVrThvNDdw/bHHapEy92oSe/v37woEImI
eaTR6g5KEBIyGmd14psLopap7v+vMLgbmx+dcbn13jVylY1nAWFCuPRAVfzfb8HN
Af22GfBYAzhy8tknHPbuLDUiC9vqan+6Wvj2qJZJT6X3lM7F/0/TbULMwJ2ajn4M
Q6iNauWujY/F7Q0eZrHPlPB6Kqcx2BG+IMTK/8XqjHt10KUyr+hu8oZVxp5Q3/f4
AKHfov/XiZQ=
=klHT
-----END PGP SIGNATURE-----



More information about the Mono-devel-list mailing list