Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

How to manage RequestLengthDiskThreshold limit in sandbox solution

$
0
0

Hi!

I have developed a webpart that uses a repeater control (I´m using a sandbox project). With some elements works well, but when I have mora than 30 elements the next exception is raised: 

Value cannot be null. 
Parameter name: path1 
at System.IO.Path.Combine(String path1, String path2) 

The behavior suposed to be: select some values from multiple dropdownlists, click a button that retrieves some information and attach a datasource to the repeater control. The first time that I click the button works fine, but if I do something that trigger a postback behavior I get an error message (the exeption that I already mentioned).

I have done some research and I foud that sandbox solutions have multiple restrictions, and in this case is the amount of data that is posted. I have read that the limit is 128kb.

Does anybory knows if it´s possible to clean the posted data via javascript, or clean the repeater´s datasource with javascript in order to 'clean' posted data and then the webpart would be able to execute again a postback process without any error???

Also I have read that if I add a tag in the web.config file ( <httpRuntime requestLengthDiskThreshold = “N″ /> ) the problem is fixed, but in my case I cannot modify the web.config file.

Thanks for your comments/suggestions.


eluisses




Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>