File pathnames within a web service

Discussion in 'ASP.NET WebServices' started by Bruce, Jun 6, 2006.

  1. Bruce

    Bruce DiscountASP.NET Staff

    You can either

    1) use server.mappath function, eg. server.mappath('/')

    or

    2) you can find the physical path to your site root in the account info section in the control panel.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. My web service needs to read files located in my website file directories. How do I get the pathname of these files? The working directory for the web service is "system32" so relative paths don't work. How do I know where on the DiscountASP server my files are? Is these some kind of environment variable? Seems like a simple enough thing but it's got me stumped.
     

Share This Page