【问题标题】:Could not find schema information for the element 'httpruntime'找不到元素“httpruntime”的架构信息
【发布时间】:2010-05-17 07:21:19
【问题描述】:

我正在尝试增加我的 asp.net 网站上的执行超时和文件上传限制,但是当我尝试添加时

<httpRuntime
    executionTimeout="110"
    maxRequestLength="4096">
  </httpRuntime>

我收到以下错误:

Could not find schema information for the element 'httpruntime'.
Could not find schema information for the element 'executionTimeout'.
Could not find schema information for the element 'maxRequestLength'.

根据这个 msdn 库 link 这就是我应该这样做的,那么我在这里缺少什么?

【问题讨论】:

    标签: asp.net web-config


    【解决方案1】:

    你试过了吗:

    <location path="YourUploadPage.aspx">
        <system.web>
            <httpRuntime maxRequestLength="{your value here}" 
                         executionTimeout="{your value here}" />
        </system.web>
    </location>
    

    意思是,&lt;httpRuntime&gt; 部分应该在 &lt;system.web&gt;&lt;location&gt;&lt;system.web&gt; 部分内。

    【讨论】:

    • 哦,我应该把它放在 中,谢谢它现在可以工作了。
    猜你喜欢
    • 2012-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-20
    • 2013-11-29
    • 2017-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多