HTTP Error 500.19 – Internal Server Error (Module: CustomErrorModule, Error Code: 0x80070021)

huangapple go评论76阅读模式
英文:

HTTP Error 500.19 - Internal Server Error (Module: CustomErrorModule, Error Code: 0x80070021)

问题

我正在使用ASP.Net MVC 5在VS2015中编程。我的网站在Visual Studio中没有错误,但在发布后(IIS 8.5,Windows Server 2012),出现了此错误。

当然,我要指出,此错误出现在发生403、404、500等错误的页面。

HTTP Error 500.19 – Internal Server Error (Module: CustomErrorModule, Error Code: 0x80070021)

> 我尝试了许多方法,但都没有成功。例如,更改Web.Config向IIS添加新功能,但都没有起作用。

英文:

I'm programming ASP.Net MVC 5 in VS2015. My website runs with no error from visual studio but after publishing (IIS 8.5, Windows Server 2012), this error displays.

Of course, I would point out that this error is displayed for pages where errors like 403, 404, 500, etc. occur.

HTTP Error 500.19 – Internal Server Error (Module: CustomErrorModule, Error Code: 0x80070021)

> I tried many ways but I didn't get it. For example a change to Web.Config or adding a new Feature to IIS but none worked.

答案1

得分: 1

两周后,我终于解决了这个问题:

简单地清除 标签并复制这些标签:

<remove statusCode="403"/>
<remove statusCode="404"/>
<remove statusCode="500"/>
英文:

After two weeks, finally I solve this problem:

>simply clear <clear/> tag and copy these tags:

  &lt;remove statusCode=&quot;403&quot;/&gt;
  &lt;remove statusCode=&quot;404&quot;/&gt;
  &lt;remove statusCode=&quot;500&quot;/&gt;

huangapple
  • 本文由 发表于 2020年1月3日 18:07:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/59576611.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定