2010-05-17 76 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