Quantcast
Channel: WilliaBlog.Net - JavaScript
Viewing all articles
Browse latest Browse all 16

Blog Engine Save Button not working on large post

$
0
0

I recently wrote a really long (about 20,000 words) blog post. I had been saving it periodically as I typed, but it suddenly reached a point where the Save button just didn't work anymore. Bringing up Firebug I could see that the Ajax request was being sent and a 500 sytem Error was being returned by the server. When I tried to insert a breakpoint in the method it was never being hit.

This made me think that this size limitation was probably in ASP.Net, not in the BlogEngine.Net codebase, and sure enough that is what it is. jQuery doesn't limit the size, but ASP.NET does by default.  You can adjust it with this web.config setting:

 

<system.web.extensions>
 
<scripting>
     
<webServices>
       
<jsonSerializationmaxJsonLength="x">
       
</jsonSerialization>
     
</webServices>
 
</scripting>
</system.web.extensions>


Where x is the size limit in bytes.

If you insert this section into your web.config and start seeing errors, you will need to install ASP.NET AJAX. Visit www.asp.net/ajax for more details.

 


Viewing all articles
Browse latest Browse all 16

Latest Images

Trending Articles





Latest Images