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!
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.
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!
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.
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!