Domanda

With a 2013 Lightswitch html app while attempting to add a number of rows to a table with image data the server throws an error. It can handle about 2Mb but after that it fails with the message

Request failed with status code '413' and status text 'Request Entity Too Large'

It does not seem to matter if I change the value in the web.config as follows

<httpRuntime maxRequestLength="102400"/>
È stato utile?

Soluzione

Turns out the setting is maxReceivedMessageSize on the binding, just make it bigger (it's in bytes)

<webHttpBinding>
  <binding maxReceivedMessageSize="6553600" />
</webHttpBinding>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top