我有一个网站几个月来一直工作正常.今天早上我开始收到503 Service Unavailable错误.检查IIS后,我注意到应用程序池正在停止.由于我以前遇到过问题,我怀疑WebRequest是问题所在.所以我注释掉了网站的WebRequest部分,猜猜是什么,应用程序池不再被禁用.我怀疑还有另一个安全更新,我无法弄清楚我还需要做些什么来让WebRequest再次运行.
我已经尝试过的事情:
1)aspnet_regiis -u然后-i
2)重新安装.net框架
更多信息:我使用带有Windows身份验证的asp.net v4.0应用程序池的NetworkService帐户
事件日志中的错误是这样的:
“HipIISEngineStub.dll无法加载.数据是错误.”
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(); }
解决方法
似乎与McAfee Host Intrusion Prevention有关.您的McAfee许可证是否用完了?或者你有一个需要更新的旧版本?查看McAfee安装.也许重新安装它.
如果您最近卸载了McAfee,或者以某种方式更改了安装,则可能仍会在ISAPI设置中引用它.尝试删除applicationHost.config中对MfeEngine的引用:
https://kc.mcafee.com/corporate/index?page=content&id=KB72677&actp=LIST
从页面引用(我的重点):
- Navigate to: %windir%\system32\inetsrv\config
- Open the file applicationHost.config as Administrator 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.