[Mono-bugs] [Bug 338116] HttpRuntime.BinDirectory returns multiple relative paths

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 2 15:52:56 EDT 2007


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                                         |Added
                 CC|                                                |gert.driesen at pandora.be
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |

--- Comment #2 from Gert Driesen <gert.driesen at pandora.be>  2007-11-02 13:52:56 MST ---
Marek, why not make it much easier and check which case of "bin" exists in
ApplicationHost.CreateApplicationHost (if MONO_IOMAP is not set, or we're on
Windows), and immediately set the PrivateBinPath correct.

That way, you can also remove the need for HttpApplication.PrivateBinPath and
HttpApplication.BinDirectories and related code.

Am I missing something here ?

Note: In .NET 1.x, ASP.NET sets PrivateBinPath to a relative path (bin), while
on 2.0 it's indeed a full path.

HttpRuntime.BinDirectory should always return the full path (both .NET 1.x as
2.0), but with a trailing directory separator character

Also, I noticed that you're:
* combining paths using ; in ApplicationHost.CreateApplicationHost
* splitting them using Path.PathSeparator in HttpApplication.PrivateBinPath

I'm probably overlooking something here.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list