I have a site that has been working fine for months. This morning I started getting 503 Service Unavailable errors. After checking IIS, I noticed that the application pool is being stopped. Since I had issues with it before, I suspected WebRequest to be the problem. So I commented out the WebRequest portion of the site, and guess what, the application pool no longer gets disabled. I suspect there has been another security update and I can't figure out what else I need to do to get the WebRequest to work again.
Things I have already tried:
1) aspnet_regiis -u then -i
2) reinstalling .net framework
More info: I use NetworkService account for the asp.net v4.0 app pool with Windows Authentication
The error from the event log is this:
"HipIISEngineStub.dll failed to load. The data is the error."
var request = (HttpWebRequest)WebRequest.Create(path1);
request.Credentials = CredentialCache.DefaultCredentials;
request.PreAuthenticate = true;
var getResponse = new Func<WebRequest, WebResponse>(req => req.GetResponse());
try
{
return getResponse(request).GetResponseStream();
}