JavaScriptSerializer.MaxJsonLength PropertyGets or sets the maximum length of JSON strings that are accepted by the JavaScriptSerializer class. Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The value of the MaxJsonLength property applies only when you explicitly create an instance of the JavaScriptSerializer class. Use the jsonSerialization element of the configuration file to set the maximum length for the internal serializer instance that is used by the asynchronous communication layer. For more information about the configuration elements for serialization, see How to: Configure ASP.NET Services in Microsoft Ajax. Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2 The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements. |
'maxJsonLength'에 해당되는 글 2건
Study/MSDN2011. 7. 8. 09:42
출처 : http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx
Study/Bookmark2011. 7. 8. 09:41
Server Error in ‘/’ Application.
|
처음 이 에러를 만났을 때... 아.. 큰일이다 싶었는데, 해결 하고 나니 후련하다. ㅎㅎ
일반적인 상황에선 데이터 초과할 일이 없겠으나, 한 페이지에 대량의 데이터를 불러오는 경우
웹 사이트의 web.config 를 뒤져서 직접 수정 해도 되겠으나
프로젝트 내에 구현 하는 것이 여러모로 정신 건강에 도움이 됨.. ^^
출처 : http://brianreiter.org/2011/01/03/custom-jsonresult-class-for-asp-net-mvc-to-avoid-maxjsonlength-exceeded-exception/