Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unhandled exception: The size of the state manager setting value has exceeded the limit

Several of our customers see this unhandled exception that we never experience ourselves or were able to reproduce.

Unhandled exception: The size of the state manager setting value has exceeded the limit (Excep_FromHResult 0x80073DC8)

What can cause this exception?

like image 600
user1744147 Avatar asked Oct 28 '25 05:10

user1744147


1 Answers

LocalSettings do have some limits, see the Remarks section in ApplicationData.LocalSettings | localSettings property:

The name of each setting can be 255 characters in length at most. Each setting can be up to 8K bytes in size and each composite setting can be up to 64K bytes in size.

When the size of the setting is too large, it will raise this exception. Although there is no general size restriction on the total number of settings, it's better to store large data sets to files in isolated storage. So like @pstrjds said, you may need to verify the size of the settings in your app and if some of them could be large, you may try to store them in LocalFolder.

like image 196
Jay Zuo Avatar answered Oct 29 '25 18:10

Jay Zuo