I am using HTMLTextbox. And it is bind to and column which is having character length more than 8000. I am getting error. See in attachment. How can I fix it.
2 Answers, 1 is accepted
0
Accepted
Hello Manoj,
Judging by the error message, we assume you're using the Silverlight report viewer, which utilizes the Telerik Reporting WCF Service. In WCF using such a "long" request does require some settings. The allowed request size should be increased on the service side (in the web.config):
Define binding with longer max size:
<system.serviceModel>
...
<bindings>
<basicHttpBinding>
<binding name="ServicesBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000">
<readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000"/>
</binding>
</basicHttpBinding>
</bindings>
...
</system.serviceModel>
and use it in the service declaration
<service name="Telerik.Reporting.Service.ReportService"
behaviorConfiguration="ReportServiceBehavior">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="ServicesBinding"
contract="Telerik.Reporting.Service.IReportService">
...
Hope this information helps.
Best wishes,
Steve
the Telerik team
Judging by the error message, we assume you're using the Silverlight report viewer, which utilizes the Telerik Reporting WCF Service. In WCF using such a "long" request does require some settings. The allowed request size should be increased on the service side (in the web.config):
Define binding with longer max size:
<system.serviceModel>
...
<bindings>
<basicHttpBinding>
<binding name="ServicesBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000">
<readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000"/>
</binding>
</basicHttpBinding>
</bindings>
...
</system.serviceModel>
and use it in the service declaration
<service name="Telerik.Reporting.Service.ReportService"
behaviorConfiguration="ReportServiceBehavior">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="ServicesBinding"
contract="Telerik.Reporting.Service.IReportService">
...
Hope this information helps.
Best wishes,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
0
Celso
Top achievements
Rank 1
answered on 17 Oct 2012, 08:27 AM
I'm having the same issue, I've changed my web.config already but the issue remains. any sugestion?
web.config
web.config
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<!--
For more information on how to configure your ASP.NET application, please visit
-->
<
configuration
>
<
system.webServer
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
>
<
add
name
=
"DomainServiceModule"
preCondition
=
"managedHandler"
type
=
"System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
modules
>
<
handlers
>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
verb
=
"*"
preCondition
=
"integratedMode"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
/>
</
handlers
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
</
system.webServer
>
<
location
path
=
"WebResource.axd"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
location
path
=
"ScriptResource.axd"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
location
path
=
"Telerik.Web.UI.WebResource.axd"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
<
system.net
>
<
mailSettings
>
<
smtp
deliveryMethod
=
"Network"
from
=
""
>
<
network
host
=
"smtp.exchange.telepac.pt"
port
=
"25"
userName
=
""
password
=
""
/>
</
smtp
>
</
mailSettings
>
</
system.net
>
<
connectionStrings
>
<
add
name
=
"CreateBookingOnlineEntities"
connectionString
=
"metadata=res://*/Models.CBO.csdl|res://*/Models.CBO.ssdl|res://*/Models.CBO.msl;provider=System.Data.SqlClient;provider connection string="data source=;initial catalog=;user id=sa;password=;multipleactiveresultsets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
<
add
name
=
"CreateBookingOnlineReports"
connectionString
=
"Data Source=;Initial Catalog=;User ID=sa;Password="
providerName
=
"System.Data.SqlClient"
/>
</
connectionStrings
>
<
system.web
>
<
httpModules
>
<
add
name
=
"DomainServiceModule"
type
=
"System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
httpModules
>
<
compilation
debug
=
"true"
strict
=
"false"
explicit
=
"true"
targetFramework
=
"4.0"
>
<
assemblies
>
<
add
assembly
=
"System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<
add
assembly
=
"System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
assemblies
>
</
compilation
>
<
httpHandlers
>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
</
httpHandlers
>
</
system.web
>
<
system.serviceModel
>
<
services
>
<
service
name
=
"CreateBooking.Web.CreateBookingService"
>
<
endpoint
address
=
""
binding
=
"customBinding"
bindingConfiguration
=
"CreateBooking.Web.CreateBookingService.customBinding1"
contract
=
"CreateBooking.Web.CreateBookingService"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpBinding"
contract
=
"IMetadataExchange"
/>
</
service
>
<
service
name
=
"CreateBooking.Web.Service1"
>
<
endpoint
address
=
""
binding
=
"customBinding"
bindingConfiguration
=
"CreateBooking.Web.Service1.customBinding0"
contract
=
"CreateBooking.Web.Service1"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpBinding"
contract
=
"IMetadataExchange"
/>
</
service
>
<
service
name
=
"CreateBooking.Web.MyService"
>
<
endpoint
address
=
""
binding
=
"customBinding"
bindingConfiguration
=
"CreateBooking.Web.MyService.customBinding0"
contract
=
"CreateBooking.Web.MyService"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpBinding"
contract
=
"IMetadataExchange"
/>
</
service
>
<
service
name
=
"Telerik.Reporting.Service.ReportService"
behaviorConfiguration
=
"ReportServiceBehavior"
>
<
endpoint
address
=
""
binding
=
"basicHttpBinding"
contract
=
"Telerik.Reporting.Service.IReportService"
>
<
identity
>
<
dns
value
=
"localhost"
/>
</
identity
>
</
endpoint
>
<
endpoint
address
=
"resources"
binding
=
"webHttpBinding"
behaviorConfiguration
=
"WebBehavior"
contract
=
"Telerik.Reporting.Service.IResourceService"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpBinding"
contract
=
"IMetadataExchange"
/>
</
service
>
</
services
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
""
>
<
serviceMetadata
httpGetEnabled
=
"true"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
<
dataContractSerializer
maxItemsInObjectGraph
=
"2147483647"
/>
</
behavior
>
<
behavior
name
=
"ReportServiceBehavior"
>
<
serviceMetadata
httpGetEnabled
=
"true"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
</
serviceBehaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"WebBehavior"
>
<
webHttp
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
<
bindings
>
<
basicHttpBinding
>
<
binding
name
=
"ServicesBinding"
maxReceivedMessageSize
=
"4000000"
maxBufferSize
=
"4000000"
>
<
readerQuotas
maxArrayLength
=
"4000000"
maxStringContentLength
=
"4000000"
/>
</
binding
>
</
basicHttpBinding
>
<
customBinding
>
<
binding
name
=
"CreateBooking.Web.CreateBookingService.customBinding0"
>
<
binaryMessageEncoding
/>
<
httpTransport
/>
</
binding
>
<
binding
name
=
"CreateBooking.Web.CreateBookingService.customBinding1"
>
<
binaryMessageEncoding
/>
<
httpTransport
/>
</
binding
>
<
binding
name
=
"CreateBooking.Web.Service1.customBinding0"
>
<
binaryMessageEncoding
/>
<
httpTransport
/>
</
binding
>
<
binding
name
=
"CreateBooking.Web.MyService.customBinding0"
>
<
binaryMessageEncoding
/>
<
httpTransport
/>
</
binding
>
</
customBinding
>
</
bindings
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
multipleSiteBindingsEnabled
=
"true"
/>
</
system.serviceModel
>
</
configuration
>