加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 在webrequest上停止了应用程序池

发布时间:2020-12-16 04:22:24 所属栏目:asp.Net 来源:网络整理
导读:我有一个网站几个月来一直工作正常.今天早上我开始收到503 Service Unavailable错误.检查IIS后,我注意到应用程序池正在停止.由于我以前遇到过问题,我怀疑WebRequest是问题所在.所以我注释掉了网站的WebRequest部分,猜猜是什么,应用程序池不再被禁用.我怀疑还
我有一个网站几个月来一直工作正常.今天早上我开始收到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%system32inetsrvconfig
  • 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%System32inetsrvHipIISEngineStub.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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读