This is a migrated thread and some comments may be shown as answers.

This factory buffers messages, so the message sizes must be in the range of an integer

3 Answers 331 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 25 May 2011, 04:02 PM
Good Day All

i am having a strange error here. I am using Silverlight and i am accessing an Asp.net page inside a RadHtmlContainer. i am doing an Insert that will insert only two records and i am calling a Service that i tested independently with a wcftest client and it work , now i am doing in my Silverlight app and i get the Following error
 
This factory buffers messages, so the message sizes must be in the range of an integer value.
Parameter name: bindingElement.MaxReceivedMessageSize

i googled a bit and a lot of people said it was timing out and i look at the Service from the DAL -->BLL -->PL , i made sure that the web config looks like this

     
<basicHttpBinding>
        <binding name="BasicHttpBinding_ILogger" closeTimeout="00:10:00"
          openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
            maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>


and still i get the same error, i am not doing anything funny in my insert in the DAL it only does something like this
 
sp_Credit_Tuckshop   @USERID ,@SCHOOLID ,@AMOUNT

 
and that's all what is the Problem


Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 30 May 2011, 12:18 PM
Hi Vuyiswa Maseko,

I am not sure that I understand your issue correctly as I am not sure how you use the RadHtmlPlaceholder in your scenario. However, the RadHtmlPlaceholder renders external pages by placing them into an IFrame object.

Basically when you set the HtmlPlaceholder SourceUrl property, the control creates an IFrame object, it sets the SourceUrl value as a src for the IFrame and then it places the IFrame in the page that hosts the Silverlight plug-in.

This is why the RadHtmlPlaceholder has little control over the way the IFrame renders its content. And from your description it seems that the issue might be caused by the IFrame handling your insert logic.

I hope that this info will shed some light on the RadHtmlPlaceholder implementation and will help you find the cause for the error.

Best wishes,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 30 May 2011, 12:24 PM
Thanks for your reply, my web config had a problem so i fixed that by change the invalid timeout that i have set , but its fine, can you kindly please look at the post that i have posted this morning and see if you can assist

http://www.telerik.com/community/forums/silverlight/htmlplaceholder/response-brings-back-an-incorrect-url.aspx


Thanks
0
Tina Stancheva
Telerik team
answered on 02 Jun 2011, 09:19 AM
Hi Vuyiswa Maseko,

I am glad that you managed to fix your issue. As for the other thread you started, we will need more information about the RadHtmlPlaceholder definition and related custom logic. If you can send us a small sample reproducing your scenario and the RadhtmlPlaceholder issue, we will be able to further investigate it.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
HTMLPlaceHolder
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Vuyiswa
Top achievements
Rank 2
Share this question
or