Re: Getting IIS Code base directory

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 02/08/05


Date: Tue, 08 Feb 2005 10:41:11 -0800

Hi,

I think that what you are looking for is the HttpRequest.MapPath method

Here's a link to the MSDN documentation:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttprequestclassmappathtopic.asp

Hope this helps!

-- 
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com
Pankaj wrote:
> Hi,
>  I'm in the situation where I want to get the absolute path of IIS code 
base
> directory (i.e. typically <website name>\bin ), without passing the 
website
> (virtual directory) name.
>
> As the default current directory (or working directory) for the IIS is
> "C:\WINNT\system32\inetsrv", the "Directory.GetCurrentDirectory()" method
> always returns "C:\WINNT\system32\inetsrv" and not the path where actual
> binary files of the website are residing.
>
> Can anybody help me by telling how do I get the absolute path of the
> directory "without passing the website name" ?
>
> Thanks in advance
> Pankaj A. Chitriv


Relevant Pages

  • Re: Getting IIS Code base directory
    ... Pankaj A. Chitriv ... >> I'm in the situation where I want to get the absolute path of IIS code ... >> binary files of the website are residing. ... >> Pankaj A. Chitriv ...
    (microsoft.public.inetserver.iis)
  • Getting IIS Code base directory
    ... I'm in the situation where I want to get the absolute path of IIS code base ... directory (i.e. typically <website name>\bin), ... directory "without passing the website name"? ...
    (microsoft.public.inetserver.iis)
  • Re: Getting IIS Code base directory
    ... Pankaj wrote: ... > I'm in the situation where I want to get the absolute path of IIS code base ... > (virtual directory) name. ...
    (microsoft.public.inetserver.iis)
  • Getting IIS Code base directory
    ... Can anybody help me by telling how do I get the absolute path of the directory "without passing the website name"? ... Pankaj A. Chitriv ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Thanks Dr, Claw
    ... I can't figure out my absolute path on my website so I can turn a ... I need techie help. ...
    (alt.smokers.cigars)