Base solution for your next web application
Open Closed

App_Data folder dissapeared #4502


User avatar
0
fguo created

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,


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

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

  • User Avatar
    0
    buddhit created

    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

  • User Avatar
    0
    ryancyq created
    Support Team

    <cite>buddhit: </cite> 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 <a class="postlink" href="https://support.microsoft.com/en-sg/help/2005172/applicationpoolidentity-does-not-have-write-permission-to-asp-net-app">https://support.microsoft.com/en-sg/hel ... sp-net-app</a>

  • User Avatar
    0
    buddhit created

    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

  • User Avatar
    0
    ryancyq created
    Support Team

    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.

  • User Avatar
    0
    buddhit created

    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 ??

  • User Avatar
    0
    ryancyq created
    Support Team

    I haven't really have time to test on it. However, the log file issue should be configured at log4net side.

    See <a class="postlink" href="https://stackoverflow.com/questions/1999382/intermittent-log4net-rollingfileappender-locked-file-issue">https://stackoverflow.com/questions/199 ... file-issue</a>

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