Support forum for ASP.NET Zero (https://aspnetzero.com/).
By fguo
#26072 I am using Core+Angular version 5.0.4. Usually, there is no App_Data folder in published files, but when I deployed the published files into IIS and after the first run, the App_Data folder will be created on root and contains Log.txt file.

Recently, the App_Data folder never show up after deployed on IIS. I can run the program, but can't find/trace the Log.txt file.

What do I possibly miss?

Thanks,
By ismcagdas
#26077 @fguo permisions on the website root folder might be changed. Maybe you (IIS user) don't have permission to create App_Data folder.

You can check windows event viewer to see error details.
By buddhit
#31587 Hi there

I got the same issue deploying on IIS, I can't seem to find App_data folder at all. I have tried changing security for IIS user but no luck :(

Regards
Buddhi
By ryancyq
#31596
buddhit wrote:Hi there

I got the same issue deploying on IIS, I can't seem to find App_data folder at all. I have tried changing security for IIS user but no luck :(

Regards
Buddhi


Not sure if your IIS User refer to application pool.

See https://support.microsoft.com/en-sg/hel ... sp-net-app
By buddhit
#31611 Hi there

I have tried giving permission to Application pool user as well but no luck. I have three sites on IIS and they are pointed to one application folder. Host app now logging logs into App_data/Logs/logs.txt but still, two other app is not able to write logs. can you suggest something, please?

Regards
By ryancyq
#31614 Do you mean all 3 sites are writing into the same log file?

When one application pool started writing the log file, the file will be locked and other process can only open it in read-only mode. Hence, other processes will not be able to write to that log file.
By ryancyq
#31622 I haven't really have time to test on it.
However, the log file issue should be configured at log4net side.

See https://stackoverflow.com/questions/199 ... file-issue

Do take note that it is not advisable to use multiple site with the same application folder even if it is multi-tenancy application.