Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<binding name="BasicHttpBinding_IPortalAPI" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" hostNameComparisonMode="disht" maxBufferPoolSize="524288" maxReceivedMessageSize="200000000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
         <readerQuotas maxDepth="32" maxStringContentLength="2000000" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>





I have increase the size of maxReceivedMessageSized =2000000 to 200000000

during saving the data it showingh exception

System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated.
The data for table-valued parameter "@WISR_DATA" doesn't conform to the table type of the parameter.
The statement has been terminated.
Posted
Updated 21-Jun-13 0:57am
v2
Comments
Rajesh Anuhya 21-Jun-13 6:57am    
Repost, Delete the Old one
Calvijn 21-Jun-13 12:49pm    
This looks like you are trying to commit data which is to big for your table column.

Ex.:
Your Table Column is of type VARCHAR(255) or NVARCHAR(255)
and you are trying to add a string with more as 255 chars.

Try to check the Type of the table column and the length of the submitted data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900