500.19 - 生产服务器上的内部服务器错误。

时间:2015-11-13 18:07:31

标签: asp.net webforms web-config iis-7.5 ajaxcontroltoolkit

我在生产服务器上有500.19 - 内部服务器错误。

在我试图访问的页面上,我有一个来自ajaxcontroltoolkit的htmleditorextender。为了使htmleditorextender在开发服务器上运行,我必须将以下条目添加到web.config文件中:

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
  <add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" />
</handlers>
<security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="4294967295"/>
  </requestFiltering>
</security>
</system.webServer>

一切正常,直到我将其上传到生产服务器(如果它完全有帮助,它保存在1和1服务器中。) 错误发生在以下行:

      <requestFiltering>
    <requestLimits maxAllowedContentLength="4294967295"/>
  </requestFiltering>

我无法删除该行,因为我需要它来使htmleditorextender工作。 任何建议都将不胜感激。

配置错误:

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". 

0 个答案:

没有答案
相关问题