Trying to read file, cannot get directory path correct.

Discussion in 'ASP.NET / ASP.NET Core' started by JoyOfWorking, Feb 1, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am trying to read in a template file and
    have tried a number of different paths with
    no luck. I tried:

    \htdocs\Templates\ResumeBasicInfo.html
    Got message:
    Could not find a part of the path "c:\htdocs\Templates\ResumeBasicInfo.html"

    Templates\ResumeBasicInfo.html

    Got message:Could not find a part of the path "c:\windows\system32\inetsrv\Templates\ResumeBasicInfo.html".

    c:\windows\system32\inetsrv\JoyOfWorkin\Templates\ResumeBasicInfo.html

    Got message:Could not find a part of the path "c:\windows\system32\inetsrv\JoyOfWorkin\Templates\ResumeBasicInfo.html

    My user name is 'joyofworkin'

    Any help would be appreciated.

    Thanks

    Frank
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Or use

    server.mappath('/Templates/ResumeBasicInfo.html')

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    The full path of your webhosting account can be found in your control panel. See the Account Information section.

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page