Works well, I changed it to add the site name in, this seems more informational to me. "return System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath + System.Web.Hosting.HostingEnvironment.SiteName;"
I don't think that connection pooling will affect the path. If one site has 10 open connections they will all show the same path and site name, this is the same as a single application which has 10 connections to the same database, the path and application name will be the same as well. The main thing here is that it works and does not throw an exception (For websites this is better, with the old method (MainModule.FileName) when running under IIS you would get the IIS process for all connections over all sites). On Wed, Apr 8, 2009 at 7:21 PM, Gareth <gareth.gosl...@gmail.com> wrote: > I will try to test this on 2003 server under IIS next week, 15/04/2009. > > > On Sun, Mar 22, 2009 at 12:38 PM, Jiri Cincura <disk...@cincura.net> wrote: >> Hi, I've found just one small problem. :) If I'm going to show path >> for ASP.NET apps. this may be wrong, because of connection pooling. I >> don't know whether it's acceptable or we have to find another solution >> (probably showing hardcoded string). >> >> What do you think? >> >> -- >> Jiri {x2} Cincura (CTO x2develop.com) >> http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Firebird-net-provider mailing list >> Firebird-net-provider@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider >> > > -- > Gareth > -- Gareth ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider