2010-05-17 78 views
1

我想增加我的asp.net网站的执行超时和文件上传限制,但是当我尝试添加无法找到元素“的httpRuntime”

<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这是我应该怎样做,所以我缺少什么吗?

回答

2

你试过:

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

手段,<httpRuntime>部分应该是内部<system.web><location><system.web>部分。

+0

哦,我本应该把它放在里面,谢谢它现在正在工作。 – Iulian 2010-05-17 07:28:39