Results 1 to 5 of 5

Thread: Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

  1. #1

    Thread Starter
    Lively Member lekhuyen's Avatar
    Join Date
    May 2006
    Posts
    80

    Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

    Hi everyone!
    I have a small problem with my Websetup project!
    In my Web Aplication Project, I have some code which read and write some text to a text file "VEFFErrLog.txt.1". This file stores all error of my project during run time.
    I create a web setup project and install it in my computer. It's OK.
    But in run time, my web aplication have an error and i recieved a yellow page with this message: "Access to the path "C:\Inetpub\wwwroot\WebSetup1\VEFFErrLog.txt.1" is denied."
    What is my error and how can i fix bug!
    Thank for any suggestion!

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

    You will have to grant write access to that directory for your applcation user, which is aspnet I think. You might be able to do it via IIS as well.

  3. #3

    Thread Starter
    Lively Member lekhuyen's Avatar
    Join Date
    May 2006
    Posts
    80

    Re: Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

    Thk you very much!
    But now i get a funny problem.
    I have 3 text files. 2 of them can read and write in "C:\Inetpub\wwwroot\" but the last cann't. They show this error: "Access to the path 'C:\Inetpub\wwwroot\WebSetup1\VeffLog.txt' is denied.".
    what can i do now to solve this problem.
    Thank for any suggestion!

  4. #4
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

    Have you tried to delete that file manually? Maybe something has it locked.

  5. #5

    Thread Starter
    Lively Member lekhuyen's Avatar
    Join Date
    May 2006
    Posts
    80

    Re: Access to the path text file in "C:\Inetpub\wwwroot\" is denied.

    Hi wild bill!
    I don't delete any file in that folder! I only write data into 3 files.
    I've tried some ways. But it can't help me.
    Thank for any suggestion!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width