2013-01-23 57 views
0

我收到504網關超時錯誤,同時上傳大文件,例如30MB視頻文件。我曾在web.config中進行以下設置,但仍然是亙古不變的作品。504網關超時錯誤,而文件上傳c#

<httpRuntime executionTimeout="99999" maxRequestLength="1048576" requestLengthDiskThreshold="80" useFullyQualifiedRedirectUrl="false" 
       minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableKernelOutputCache="true" enableVersionHeader="true" 
       requireRootedSaveAsPath="true" enable="true" 
       shutdownTimeout="90" delayNotificationTimeout="5" waitChangeNotification="0" maxWaitChangeNotification="0" enableHeaderChecking="true" 
       sendCacheControlHeader="true" apartmentThreading="false" /> 

回答

0

如果您確信它不是某些ISP問題,那麼也嘗試設置這樣的:

<system.webServer> 
    <security> 
     <requestFiltering> 
     <requestLimits maxAllowedContentLength="104857600" /> 
+0

沒有我不知道它閹ISP的問題...我要去錯誤的,我標籤 – vidyasagar85

+0

正如我記得IIS犯規送504時的要求是太長或存在超時上傳數據。我認爲有一起是一路下跌的一些機器。你可以嘗試嘗試與這些設置本地IIS Express實例? – rgripper

+0

其實我的apllication是在另一臺服務器上,我正在上傳其他服務器上的數據....所以上傳數據需要很多時間....因此我猜想超時錯誤會被強化......但是在執行了ur之後解決方案我得到一個新的錯誤,現在它說這個網頁無法使用.... – vidyasagar85