Page 1 of 1

App_Data folder dissapeared

PostPosted: Mon Jan 15, 2018 4:19 am
by fguo
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,

Re: App_Data folder dissapeared

PostPosted: Mon Jan 15, 2018 5:47 am
by ismcagdas
@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.

Re: App_Data folder dissapeared

PostPosted: Mon Aug 20, 2018 1:48 pm
by buddhit
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

Re: App_Data folder dissapeared

PostPosted: Mon Aug 20, 2018 5:10 pm
by ryancyq
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

Re: App_Data folder dissapeared

PostPosted: Tue Aug 21, 2018 10:42 am
by buddhit
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

Re: App_Data folder dissapeared

PostPosted: Tue Aug 21, 2018 12:08 pm
by ryancyq
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.

Re: App_Data folder dissapeared

PostPosted: Tue Aug 21, 2018 2:13 pm
by buddhit
Yes, you are right. All 3 sites are writing into the same log file as it is Multi tenancy appp. How do we solve this issue then ??

Re: App_Data folder dissapeared

PostPosted: Tue Aug 21, 2018 5:31 pm
by ryancyq
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.