title: IIS 7.0 gives 503 error and stops the application pool
body: <p>When I start the application pool, and request a page in an application in that pool, I get a "HTTP Error 503. The service is unavailable."</p>
  
  <p>If I look at the application pools in IIS, I can see that it has now stopped. Going to the event viewer I find this error message: </p>
  
  <p>'The identity of application pool Badge.Web is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request.  If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.'</p>
  
  <p>I'm very sure the credentials I'm using is correct. Something else is causing the app pool to stop. </p>