I'm converting a console app running on a windows server to an Azure Web job. This console application has references to the.txt log file location in app.config.
I was able to deploy the webjob, but when I run the webjob, I get the below error as the webjob is not able to get to this path, which is on the server. Access to the path 'C:\Jobs\logs\Log 4_27_2020.txt' is denied.
What is the solution for this?
Also, the same console app also has the file layout defined in.xml format as:
How can I get the webjob to reference this location?
Thanks!!
You can't write to the C drive. The folder structure starts at D:\home and is mapped to the %HOME% environment variable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.