UWInfo Blog
發表新文章
[Join] | [忘記密碼] | [Login]
搜尋

搜尋意見
文章分類-Reiko
[所有文章分類]
  • ASP.NET (7)
  • ASP.NET2.0 (1)
  • ASP.NET4.0 (6)
  • JavaScript (5)
  • jQuery (3)
  • FireFox (1)
  • UW系統設定 (1)
  • SQL (11)
  • SQL 2008 (12)
  • mirror (4)
  • SVN (0)
  • IE (2)
  • IIS (5)
  • IIS6 (1)
  • 閒聊 (0)
  • W3C (0)
  • 作業系統 (1)
  • C# (3)
  • CSS (0)
  • FileServer (0)
  • HTML 5 (0)
  • CKEditor (1)
  • UW.dll (0)
  • Visual Studio (3)
  • Browser (1)
  • SEO (0)
  • Google Apps (1)
  • 網站輔助系統 (0)
  • DNS (5)
  • SMTP (0)
  • 網管 (0)
  • 社群API (0)
  • SSL (3)
  • App_Inventor (0)
  • URLRewrite (1)
  • 開發工具 (1)
  • JSON (1)
  • Excel2007 (0)
  • 試題 (0)
  • LINQ (1)
  • bootstrap (0)
  • Vue (0)
  • IIS7 (0)
  • foodpanda (0)
  • 編碼 (0)
  • 資安 (0)
  • Sourcetree (0)
  • MAUI (0)
  • CMD (0)
  • my sql (0)
所有文章分類
[Reiko的分類]
  • ASP.NET (48)
  • ASP.NET2.0 (15)
  • ASP.NET4.0 (34)
  • JavaScript (49)
  • jQuery (26)
  • FireFox (4)
  • UW系統設定 (3)
  • SQL (39)
  • SQL 2008 (25)
  • mirror (4)
  • SVN (4)
  • IE (9)
  • IIS (20)
  • IIS6 (1)
  • 閒聊 (7)
  • W3C (6)
  • 作業系統 (9)
  • C# (24)
  • CSS (12)
  • FileServer (1)
  • HTML 5 (11)
  • CKEditor (3)
  • UW.dll (13)
  • Visual Studio (16)
  • Browser (8)
  • SEO (1)
  • Google Apps (3)
  • 網站輔助系統 (4)
  • DNS (5)
  • SMTP (4)
  • 網管 (11)
  • 社群API (3)
  • SSL (4)
  • App_Inventor (1)
  • URLRewrite (2)
  • 開發工具 (6)
  • JSON (1)
  • Excel2007 (1)
  • 試題 (3)
  • LINQ (1)
  • bootstrap (0)
  • Vue (3)
  • IIS7 (3)
  • foodpanda (2)
  • 編碼 (2)
  • 資安 (3)
  • Sourcetree (1)
  • MAUI (1)
  • CMD (1)
  • my sql (1)
最新回應
  • dotnet ef dbcontext scaffold
    ...more
  • 線上客服 - MSN
    本人信箱被盜用以致資料外洩,是否可以請貴平台予以協助刪除該信箱之使用謝謝囉...more
  • 插入文字到游標或選取處
    aaaaa...more
  • dotnet ef dbcontext scaffold
    更新到最新版的 dotnet-ef tooldotnet tool update --global ...more
  • dotnet ef dbcontext scaffold
    還需要這個:Microsoft.EntityFrameworkCore.Design...more
  • dotnet ef dbcontext scaffold
    指定版本:dotnet add package Microsoft.EntityFrameworkC...more
  • SQL 2008 Mirror Setting
    有設定見證伺服器但在Principal掛掉卻不會自動轉到Mirror資料庫在DBC加上: Failo...more
  • SQL 2008 Mirror Setting
    最近更換機房後201重啟很久,造成有設定Mirror的資料庫一直處於復原中狀態,網站無法正常運作(可...more
  • Send Mail By gmail SMTP
    出現錯誤訊息:System.Net.Mail.SmtpException: SMTP 伺服器需要安全...more
  • [SQL]將多筆資料合併為一筆顯示(FOR XML PATH)
    實測發現長度只能到 2034 個字元所以太長的話會被截斷...more
標籤
  • [u2]
  • 8
  • 排程
  • 圖片
  • end
  • pg ORDER B
  • IDENTITY
  • prop
  • 208
  • 528
  • 80
  • 134
  • Exception
  • 406
  • Contains
  • 334
  • .
  • win
  • 憑證匯出
  • if
  • cell
  • -2882
  • 70
  • dataroot
  • let
  • list
  • GRANT
  • en,
  • 398
  • sp_
  • ie
  • appcmd
  • outhtml
  • 現網站在大流量卡住時
  • -1140
  • 212
  • console
  • postgres
  • cros
  • max
  • 參數超過1,000
  • a
  • 17.9CVas
  • 備份
  • css
  • exception,
  • C
  • 時間
  • 102
  • dependency
Server Error - 由於該物件目前的狀態,導致作業無效。

 ASP.NET 在處理 HTTP POST 要求時最多只能接受 1,000 個參數,一般來說不會有人透過 POST 傳遞表單資料超過 1,000 個欄位 ( 以筆者的經驗來說,傳過最多的一次是 700 個欄位,當時是個問卷系統 ),如果傳數參數超過 1,000 筆的話,就會出現 Operation is not valid due to the current state of the object. (英文) 或 由於該物件目前的狀態,導致作業無效。 (中文) 例外狀況,細部的例外訊息會有 HttpException (0x80004005): The URL-encoded form data is not valid. (英文) 或 HttpException (0x80004005): URL 編碼型式資料無效。
參考:http://blog.miniasp.com/post/2012/01/01/Efficient-Denial-of-Service-Attacks-on-Web-Application-Platforms.aspx

解:
web.config加下面這個設定
<appSettings>
     <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
</appSettings>
 

Reiko, 2012/8/15 下午 06:39:13
Bike, darren, 瞇瞇, Reiko 已閱讀.
意見
No Data.
Comment:
*Nickname:
E-mail:
Blog URL:
  • *意見內容
  • 預覽
#Nickname#
2012/8/15 下午 06:39:13
#CommentContent#
*請輸入驗證碼: 看不懂,換張圖
 
~ Uwinfo ~