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();
}
This issue occurs when the IIS application pool Identity Parameter is not set to NetworkService. To resolve this issue, change the Identity parameter to NetworkService in the IIS Manager for Windows Server: Select the Advanced Settings for the DefaultAppPool.
In Event Viewer, expand the "Application and Services Logs" section. Then expand "Microsoft, then "Windows". Then expand "IIS-Configuration, right-click on "Operational", and choose "Enable Log". Now this log will receive events whenever an application pool is stopped or started via the IIS Management GUI.
Open Internet Information Services (IIS) Manager. In the Connections pane, select the Application Pools node, revealing the Application Pools pane in the main view. Select the application pool for which you wish to enable Auto-Start. Locate the Start Mode option under the General group and set it to AlwaysRunning.
Application pools in Internet Information Services (IIS) is a mechanism designed to comprise a group of web applications corresponding to one or more worker processes (w3wp.exe) sharing a common configuration.
This is related to McAfee Host Intrusion Prevention. Can it be that your McAfee license has run out? Or that you have an old version that needs to be updated? Look over your McAfee installation. Maybe reinstall it.
If you have uninstalled McAfee recently, or changed the installation somehow, there is probably still a reference to it in your ISAPI settings. Try to remove the reference to the MfeEngine in your applicationHost.config:
https://kc.mcafee.com/corporate/index?page=content&id=KB72677&actp=LIST
Quote from the page (my emphasis):
- Start Notepad as Administrator!
- Navigate to: %windir%\system32\inetsrv\config
- Open the file applicationHost.config for editing in Notepad.
- Edit the globalModules section and remove the following line:
<add name="MfeEngine" image="%windir%\System32\inetsrv\HipIISEngineStub.dll" />
- Edit the modules section and remove the following line:
<add name="MfeEngine" />
- After you have finished editing the applicationHost.config file, save the file, then restart the IIS server using iisreset or by restarting the system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With