Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property

Recently , I came across an issue where my WebMethod call was failing with the below error message .   Error(s): {“Message”:”Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.”,”StackTrace”:”   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)\r\n   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat)\r\n  …

1

IIS Static compression : “The directory specified for caching compressed content is invalid. Static compression is disabled” Warnings in event viewer(2264)

The <httpCompression> element specifies the HTTP compression settings for Internet Information Services (IIS) 7. HTTP compression can provide faster transmission times between IIS and client browsers that can accept compressed files. More about httpcompression When a user requests for a page, the IIS worker process creates a folder specific to the application pool on the configured IIS…

3

SHA-256 Self Signed Certificate for Windows Server 2012 R2

Recently, I came across this situation where one of my customer wants to use the Self Signed Certificate to secure his intranet websites. But he wants to use the Self Signed Cert with the sha256 Signature Hash algorithm on Windows Server 2012 R2 as sha1 is retired. By Default, in Windows 2012 R2 (IIS 8.5)…

13