Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»How to Clear the ASP.NET Temporary files in Windows

    How to Clear the ASP.NET Temporary files in Windows

    RahulBy RahulJune 15, 20221 Min ReadUpdated:June 15, 2022

    Sometimes you may notice a strange caching behavior by the applications running in IIS. Today I found that my ASP.NET application showed a blank page. It is hosted on Windows Server 2019 in Azure Platform. I tried multiple times to resolve the issue but did not get success.

    After searching about the issue, I found a suggestion in Google search to remove all ASP.NET temporary files. Once I removed all the temporary files, the application start working again.

    Remove ASP.NET Temp Files in Windows

    To clear the temporary files do the following on both the Web Server:

    1. Log in to the server and open IIS.
    2. Stop IIS service. Run “iisreset /stop” in the command prompt to stop the IIS service.
    3. Navigate to the below directories:
      • “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\”
      • “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\”
    4. Remove all files under both directoires.
    5. Start IIS service. Run “iisreset /start” in the command prompt to stop the IIS service.

    Wrap Up

    Even you can remove the temporary file without stopping the IIS server. Hope this tutorial helps you to resolve the caching-related issue on your Windows server.

    ASP.NET Caching windows
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Create SFTP User in Ubuntu 22.04 (No Shell Access)
    Next Article How to Recycle IIS Application Pool in Windows

    Related Posts

    Creating Python Virtual Environment on Windows

    Updated:June 3, 20222 Mins Read

    How to Enable / disable Firewall in Windows

    Updated:May 17, 20222 Mins Read

    How to Start & Stop Windows Service via Command Line

    Updated:March 29, 20222 Mins Read

    How to Change Windows Hostname (Computer Name)

    Updated:June 2, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    How to Check Computer Uptime in Windows

    Updated:June 2, 20223 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.