﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Mon, 23 Sep 2013 00:48:34 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;We also would like to express our gratitude to Frank and his team for the patience and cooperation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;We look forward to serving your future needs.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Sun, 22 Sep 2013 22:25:29 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;Thanks so much for your prompt attention to helping us resolve the issue. I wanted to follow up on this post in case any other developers experience the same issue.&lt;/p&gt;
&lt;p&gt;The max json error occurs when too much data is loaded into the control through the dataset query. With your help we were able to add parameters to our queries based on filtering the startdatetime for and only loading data for the date selected on the calendar by the user. We used the sample code provided in the high performance webcheduler sample.&lt;/p&gt;
&lt;p&gt;Thanks again -&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Wed, 18 Sep 2013 03:17:56 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;The missing attached file is included below.&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Wed, 18 Sep 2013 00:46:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;It seems that you forgot to attach the &lt;strong&gt;Record_09102013_WithError.png&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please allow me to explain about the information that I got from &lt;strong&gt;Record_09172013_WithoutError.png&lt;/strong&gt; file.&lt;/span&gt;&lt;/p&gt;&lt;img src="http://www.intersoftpt.com/Community/Attachments/3093/selectedDate.png" style="height: 109px; width: 583px;" /&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The WebSchedulerRequest shows that the &lt;em&gt;selectedDate&lt;/em&gt; is “2013.8.17”; &lt;em&gt;viewMode&lt;/em&gt; is “Timeline”; &lt;em&gt;selectedViewMode&lt;/em&gt; is “Timeline”; and &lt;em&gt;selectedTimelineViewMode&lt;/em&gt; is “Day15minutes”. Let’s start with the selectedDate part first. It is actually says that the selected date is September 17, 2013 (not August 17, 2013). The month part is started from zero instead of 1. You can try to navigate to January 2013 and the selectedDate will returns 2013.0.1.&lt;/span&gt;&lt;/p&gt;&lt;img style="height: 85px; width: 560px;" src="http://www.intersoftpt.com/Community/Attachments/3093/SelectedData.png" /&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The WebSchedulerRequest shows that the &lt;em&gt;data&lt;/em&gt; is set to select.2013.8.17. This is the correct data for current view: September 17, 2013. This information aligns with your setting which says that you are using SingleLoad instead of TripleLoad. When you are using TripleLoad, you will get something like following: data="prev.2013.8.16;next.2013.8.18;select.2013.8.17".&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The terms “working sample” in my previous post means that I need a working sample which replicates the reported problem since I was unable to reproduce it in my local end. On September 16, 2013 I was able to have the same issue by set the MaxJsonLength property to a smaller number. I’m afraid that this will not help much since you’ve said that set MaxJsonLength to the max value of 2147483647 doesn’t rectify the problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please let us hear your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Tue, 17 Sep 2013 10:27:58 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;Thank you for your continued assistance, it is greatly appreciated. Here is what we have analyzed;&lt;/p&gt;
&lt;p&gt;1). Client and server paging have always been set for true&lt;/p&gt;
&lt;p&gt;2). Tried clientpagingmode set for Both and ViewPort&lt;/p&gt;
&lt;p&gt;3). Tried just about every other setting we could conceive of the past 3 full days.&lt;/p&gt;
&lt;p&gt;4). We also noticed some of the the other views, like month view also return the same problem.&lt;/p&gt;
&lt;p&gt;5). We are able to select any calendar day in the future and 3 days in the past, but any date selected in the past that is more than 3 days behind the current day returns the json error.&lt;/p&gt;
&lt;p&gt;6). We noticed in our analysis that the json call made by the webscheduler seems to be sending the selected calendar date as (- 30 days) in the query and perhaps even loading the whole 30 days of past data which may be overloading the json. For example attached file "Record_09102013_WithError" illustrates a selected date of 09/10/2013 but the query shows .2013.8.10 which throws the json error. Also if we simply click the calender month to go back a month from september to august same json error.&lt;/p&gt;
&lt;p&gt;Attached file "Record_09172013_WithoutError" illustrates a selected date of 09/17/13, (todays date), and the query shows .2013.8.17. but the json error is not thrown.&lt;/p&gt;
&lt;p&gt;We are not sure what to provide as far as your requested "working sample", please provide specific details. Also, it would be highly beneficial to be able to conduct a webex or teamviewer support session to help us expedite this issue, as stated before our client application is malfunctioning due to the above issues. I am willing to pay for any real time help required to assist us in resolving the issue!&lt;/p&gt;
&lt;p&gt;Please advise and thanks -&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Mon, 16 Sep 2013 22:44:46 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Have you tried to enable &lt;strong&gt;Client Paging&lt;/strong&gt; and &lt;strong&gt;Server Paging&lt;/strong&gt; of WebScheduler?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Client paging can be enabled in Day, Week, Timeline, and Split view. In Month view, it is enabled by default, since the layout structure requires it to be implemented when large data is used. The snippet code below shows how to enable client paging in Day view.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;DayView EnableClientPaging="true" AllDayEventPageSize="10" EventBlockSize="5" /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;It is also suggested to utilize server paging in Timeline view mode. With server paging, WebScheduler downloads only a small chunk of data based on the viewport during initial load and intelligently request more data as user scrolls downward. Please note that Server paging feature is only applicable when the client paging is set to ViewPort or Both. The code below shows how to enable server paging in Timeline view.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;TimelineView Enabled="True" EnableClientPaging="true" ClientPagingMode="Both" EnableServerPaging="true" /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please kindly check the code in HighPerformanceScheduler.aspx sample file for more detail information.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;If the problem still persists, could you please send us a working simple sample which replicates the problem? You may also edit one of WebScheduler’s sample file or add more events into it. Please send the sample file so that we can assist you further.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Mon, 16 Sep 2013 10:14:40 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;    &lt;span style="color: rgb(31, 73, 125);"&gt;Yudi, &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for your reply. We performed all the
        above analysis prior to my post, and again after your recent reply.&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;span style="color: rgb(31, 73, 125);"&gt;You stated &amp;gt;&lt;/span&gt;
&lt;/p&gt;&lt;blockquote&gt;
    "It is obvious that when we set the value of MaxJsonLength to a certain number which
    is sufficient for the Json response, the problem is no longer persist. WebScheduler
    has its own maximum length for JSON strings. The default value is 5000000 byte (5
    MB approx.).
&lt;/blockquote&gt;
&lt;p&gt;
    &lt;span style="color: rgb(31, 73, 125);"&gt;Our analysis indicates that is the problem! Our
        queries are passing more than 5mb! If we set the maxjsonvalue to the max value of
        2147483647 we are able to see more data records on the control, but still receive
        the error when clicking different calender days at random. I am assuming the control
        is limited to jason value of 5000000 bytes, (probably in a dll?), and this seems
        to be the underlying issue.&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;span style="color: rgb(31, 73, 125);"&gt;Please advise and thanks -&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;span style="color: rgb(31, 73, 125);"&gt;Frank&lt;/span&gt;
&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Mon, 16 Sep 2013 03:14:22 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In the following, I will describe the step-by-step to analyze and solve problem that occur in WebScheduler especially dealing with the “MaxJsonLengthExceeded” problem.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;WebScheduler has its own maximum length for JSON strings. The default value is 5000000 byte (5 MB approx.). It is recommended to remove the other JSON reference in your web.config file and use the WebScheduler’s &lt;strong&gt;MaxJsonLength&lt;/strong&gt; declaration as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;configuration&amp;gt;
	&amp;lt;appSettings&amp;gt;
		...
    &amp;lt;add key="ISNet.WebUI.WebScheduler.v3_0_1000.MaxJsonLength" value="5000"/&amp;gt;
    ...
	&amp;lt;/appSettings&amp;gt;
	...
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please note that you need to enable the &lt;strong&gt;EnableFastJsonSerialization&lt;/strong&gt; property of WebScheduler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;First, let’s modify the value of MaxJsonLength property of WebScheduler to a smaller number so that we can reproduce the reported problem.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="color: rgb(31, 73, 125);"&gt;&lt;li&gt;Open C# Samples project of WebScheduler (start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2012 R2 &amp;gt; WebUI Studio for ASP.NET &amp;gt; WebScheduler 3 &amp;gt; C# Samples);&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Web.config&lt;/strong&gt; file of the project and add following key under &lt;strong&gt;appSettings&lt;/strong&gt;. This modification will set MaxJsonLength of WebScheduler to 5 KB approx.;&lt;br /&gt;&lt;pre&gt;&amp;lt;configuration&amp;gt;
	&amp;lt;appSettings&amp;gt;
		...
    &amp;lt;add key="ISNet.WebUI.WebScheduler.v3_0_1000.MaxJsonLength" value="5000"/&amp;gt;
    ...
	&amp;lt;/appSettings&amp;gt;
	...
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Find &lt;strong&gt;LoadOnDemand_SingleLoad.aspx&lt;/strong&gt; sample file and set the value of &lt;strong&gt;EnableFastJsonSerialization&lt;/strong&gt; property of WebScheduler1 to &lt;strong&gt;True&lt;/strong&gt;. Save the changes and view the sample in the browser;&lt;/li&gt;
&lt;li&gt;Reported problem is reproducible (as shown in the following screenshot).&lt;br /&gt;&lt;img style="height: 400px; width: 442px;" src="http://www.intersoftpt.com/Community/Attachments/3093/MaxJsonLengthExceeded.jpg" /&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Next, I’ll show you what may cause the problem.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="color: rgb(31, 73, 125);"&gt;&lt;li&gt;Open Web.config file of the project and set the appSettings into the following. This modification removes the “MaxJsonLength” of WebScheduler and thus revert the value back to its default value.&lt;br /&gt;&lt;pre&gt;&amp;lt;configuration&amp;gt;
	&amp;lt;appSettings&amp;gt;
		...
    &amp;lt;!--&amp;lt;add key="ISNet.WebUI.WebScheduler.v3_0_1000.MaxJsonLength" value="5000"/&amp;gt;--&amp;gt;
    ...
	&amp;lt;/appSettings&amp;gt;
	...
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Save the change and view &lt;strong&gt;LoadOnDemand_SingleLoad.aspx&lt;/strong&gt; sample file in IE browser.&lt;/li&gt;
&lt;li&gt;Now, the page loaded with no issues.&lt;br /&gt;
Press &lt;strong&gt;F12&lt;/strong&gt; to open the &lt;strong&gt;Developer Tools&lt;/strong&gt; window of IE, select &lt;strong&gt;Network&lt;/strong&gt; tab, and press the &lt;strong&gt;Start capturing&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;Back to the browser window and press Ctrl&amp;#43;F5 to refresh the page.&lt;/li&gt;
&lt;li&gt;After the page completely re-rendered, switch the view to the Developer Tools window and then press the &lt;strong&gt;Stop capturing&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;In the summary view, we should be able to find two URL which has &lt;strong&gt;application/json&lt;/strong&gt; as the type. Each for &lt;strong&gt;RetrieveCalendarEvents&lt;/strong&gt; action (10.27 KB) and &lt;strong&gt;RetrieveEventViews&lt;/strong&gt; action (70.04 KB).&lt;br /&gt;&lt;img style="height: 291px; width: 585px;" src="http://www.intersoftpt.com/Community/Attachments/3093/DeveloperTools.jpg" /&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;It is obvious that when we set the value of MaxJsonLength to a certain number which is sufficient for the Json response, the problem is no longer persist.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please try to do the same and let us know whether this helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Fri, 13 Sep 2013 05:58:02 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;
&lt;p&gt;This problem has arisen again and my application is now broken in a mission critical client production environment. The webscheduler3 is set for single load. The strange thing is the users can view the current day or any day in the future, but when they click an any day in the past the maxjson error occurs and freezes the control. The view that is being used by default is the timelineview.&lt;/p&gt;
&lt;p&gt;In the webconfig the maxjson length is set for 2147483647&lt;/p&gt;
&lt;p&gt;Is there any way I can pay for right now technical support? As I said my client application is down!&lt;/p&gt;
&lt;p&gt;Please help!!!&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Tue, 31 Jan 2012 17:22:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The Triple-load mode will pre-load the next and previous data along with the current data. With this approach user can see the data directly when they go to previous data and/or next data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Unlike the Triple-load mode, the Single-load mode will only load the current data, this will reduce the traffic for first time load, but when user navigate to previous data and / or next data, they will need to wait for the data to be loaded prior the rendering process.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Your decision to change the LoadOnDemandMode into SingleLoad is correct. There will be no performance problem in the future. Should you find any, please feel free to let us know, we’ll be glad to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Json_MaxJsonLengthExceeded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/MaxJsonLengthExceeded/</link><pubDate>Sat, 21 Jan 2012 18:06:38 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;
&lt;p&gt;I have run into a serious problem in my webscheduler. When loading the webscheduler in my application I am receiving a "Json_MaxJsonLengthExceeded".  See attached screen shot image. Additional information as follows:&lt;/p&gt;
&lt;p&gt;1). The Json error ONLY occurs when my events records EXCEED 2450 records (approximate). &lt;/p&gt;
&lt;p&gt;2). I have tried changing my webconfig setting &amp;lt;jsonSerialization maxJsonLength="524288" /&amp;gt;&lt;/p&gt;
&lt;p&gt;     to &amp;lt;jsonSerialization maxJsonLength="2147483647" /&amp;gt; to no avail&lt;/p&gt;
&lt;p&gt;3). I am using SQL Server Enterprise 2008 X64 with Windows 7 Ultimate on IIS7.5&lt;/p&gt;
&lt;p&gt;4). My webscheduler is version 3.x&lt;/p&gt;
&lt;p&gt;5). In my webscheduler properties, I have changed my General &amp;gt; EnableFastJsonSerialization setting from True to False. When I do this the webscheduler does not load any data, or if it does eventually load it takes longer than 5 minutes as I have not let it try to load for longer than 5 minutes before closing the page.&lt;/p&gt;
&lt;p&gt;My application can and will have over 100,000 records in the events table within the first year. Will the webscheduler be robust enough to handle this?&lt;/p&gt;
&lt;p&gt;Please advise as to how to resolve this Json error. &lt;/p&gt;
&lt;p&gt;Thanks - Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>