Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shannon 148 posts 171 karma points
    Apr 23, 2011 @ 22:34
    Shannon
    0

    The length of the string exceeds the value set on the maxJsonLength property.

    Hosting in Windows Azure running uComponent version 2.0.1.0 and I get this error message:

     

    Process information:

     

    Process ID: 2364

     

    Process name: w3wp.exe

     

    Account name: NT AUTHORITY\NETWORK SERVICE

     

     

    Exception information:

     

    Exception type: InvalidOperationException

     

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

     

    at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)

     

    at uComponents.Core.Modules.ItemInfoService.ProcessRequest(HttpApplication app)

     

    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

     

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

    Exception information:

     

    Exception type: InvalidOperationException

     

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

     

    at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)

     

    at uComponents.Core.Modules.ItemInfoService.ProcessRequest(HttpApplication app)

     

    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

     

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

     

     

     

    Request information:

     

    Request URL: http://www.xxxx.com/umbraco/uComponents/Items/range

     

    Request path: /umbraco/uComponents/Items/range

     

    User host address: xx.xx.xx.xx

     

    User:

     

    Is authenticated: False

     

    Authentication Type:

     

    Thread account name: NT AUTHORITY\NETWORK SERVICE

     

     

     

    Exception information:

     

    Exception type: ConfigurationErrorsException

     

    Exception message: Could not load file or assembly 'uComponents.Core' or one of its dependencies. The system cannot find the file specified.

     

    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

     

    at System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement)

     

    at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)

     

    at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)

     

    at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)

     

    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)

     

    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)

     

    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)

     

    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

     

     

    Could not load file or assembly 'uComponents.Core' or one of its dependencies. The system cannot find the file specified.

     

    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)

     

    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)

     

    at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)

     

    at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)

     

    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase

    Should I upgrade to the newest version or is this a different issue?

  • Shannon Deminick 1488 posts 5014 karma points hq
    Apr 24, 2011 @ 01:28
    Shannon Deminick
    0

    I really don't think this is azure specific, this is just a web.config update see here:

    http://stackoverflow.com/questions/1151987/unlimited-for-maxjsonlength

     

  • Shannon 148 posts 171 karma points
    Apr 25, 2011 @ 07:55
    Shannon
    1

      <system.web.extensions>
        <scripting>
          <scriptResourceHandler enableCompression="true" enableCaching="true" />
          <webServices>
            <jsonSerialization maxJsonLength="2147483644"></jsonSerialization>
          </webServices>  
        </scripting>
      </system.web.extensions>

     

    This is from my web.config. Still doesn't work.

  • Gerty Engrie 116 posts 466 karma points c-trib
    Apr 26, 2011 @ 18:03
    Gerty Engrie
    0

    Having the same thing, editing web.config doesn't help either. I think there is just too much content being picked up. Site contains about 10 000 nodes. Would narrowing it down with an xpath help? Or would it still pick up the whole tree and then filter?

    thanks!

  • Dennis Milandt 188 posts 514 karma points
    Oct 10, 2012 @ 14:41
    Dennis Milandt
    0

    Any solution to this?

    - Dennis

  • Edwin van Koppen 156 posts 270 karma points
    Jan 04, 2013 @ 17:04
    Edwin van Koppen
    0

    Think do a test with big data, also this error.. is Umbraco suitable for big data?

Please Sign in or register to post replies

Write your reply to:

Draft