Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Regular Contributor
Posts: 299
Registered: ‎10-12-2015
Accepted Solution

Adding actions to role - The JSON request was too large to be deserialized

Number of actions 1079.

Go into Security>Roles and try to add an new action to the role. 

Won't page through the list of actions to get to the new action to add.

AddingActionToRoleFailure.png

Check in administrator log and find:

07.12.2018 08:52:04 ERROR - Controller Form has raised an exception in Action PageTableData.
System.InvalidOperationException: The JSON request was too large to be deserialized.
   at System.Web.Mvc.JsonValueProviderFactory.EntryLimitedDictionary.Add(String key, Object value)
   at System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value)
   at System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value)
   at System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value)
   at System.Web.Mvc.JsonValueProviderFactory.GetValueProvider(ControllerContext controllerContext)
   at System.Web.Mvc.ValueProviderFactoryCollection.GetValueProvider(ControllerContext controllerContext)
   at System.Web.Mvc.ControllerBase.get_ValueProvider()
   at System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)
   at System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)

 

I recall something similar to above a few years back but I can't remember where I wrote down the workaround - anyone have it handy?

 

ta

Regular Contributor
Posts: 299
Registered: ‎10-12-2015

Re: Adding actions to role - The JSON request was too large to be deserialized

ah, found it.

 

C:\Program Files\Intergraph\GeoMedia SmartClient\Program\Administrator\Web.config

Add 

 <add key="aspnet:MaxJsonDeserializerMembers" value="15000"/>

to <appSettings> section

 

administrator-web-config-json.png

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.