Azure website: The specified CGI application encountered an error and the server terminated the process
<p>I have a website published on Microsoft Azure and lately I'm receiving the following error: "The specified CGI application encountered an error and the server terminated the process."</p>

<p>My application is Java app and using "Newest Tomcat 7.0". I tried some fixes, but it didn't work (<a href="https://stackoverflow.com/questions/33645242/the-specified-cgi-application-encountered-an-error-and-the-server-terminated-the">The specified CGI application encountered an error and the server terminated the process</a>). My web.config didn't even have this property.</p>

<p>From my logs I notice the Java application is not logging any error, but it simply goes down after some time. It works normally when i restart the server, but after one or two days, I start receiving this error.</p>

<p>I was having this problem before, but the error just appeared after one or two months, now lately, it is showing almost daily. And I didn't make any change on my files or server.</p>

<p>Any idea how to solve it? </p>