P
Peter
I have web application which calls WFC service, but I am getting the
following error:
The maximum string content length quota (8192) has been exceeded while
reading XML data. This quota may be increased by changing the
MaxStringContentLength property on the XmlDictionaryReaderQuotas object used
when creating the XML reader. Line 243, position 38.
I have see a lot of references to this error but none of the solution seem
to help, the solutions say to update your client config, but don't say what
is the client config file, is it the web.config ?
I have created a the web.config file for the WFC service and here are the
contents, but it still does not work, also I have also updated the
maxStringContentLength in the web.config file for the web application.
Does anybody have solution to this problem?
Here's the WFC service web.config file:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="DebugFlag" value="False" />
<add key="RequestDirectory" value="Requests" />
<add key="ReportServicePort" value="8000" />
<add key="ReportsServiceUri"
value="tcp://reports01:8000/ReportsServer.tcp" />
<add key="ReportsServiceUriLocal"
value="tcp://devcon3:8000/ReportsServer.tcp" />
</appSettings>
<system.serviceModel>
<services>
<service behaviorConfiguration="ServiceBehavior"
name="ReportServiceLibrary.ReportService">
<endpoint address="" binding="wsHttpBinding"
contract="ReportServiceLibrary.IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<endpoint address="basic" binding="basicHttpBinding"
bindingConfiguration=""
contract="ReportServiceLibrary.IReportService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below
to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging
purposes, set the value below to true. Set to false before deployment to
avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IReportService"
closeTimeout="08:01:00"
openTimeout="08:01:00" receiveTimeout="08:10:00"
sendTimeout="08:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="16384"
maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_IReportService"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="16384"
maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint
address="http://reports01.vanhoof.com/ReportServiceLibrary/ReportService.svc"
binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IReportService"
contract="IReportService"
name="WSHttpBinding_IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="http://reports01.vanhoof.com/ReportServiceLibrary/ReportService.svc/basic"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IReportService"
contract="IReportService"
name="BasicHttpBinding_IReportService" />
</client>
</system.serviceModel>
</configuration>
Thank you
Peter
following error:
The maximum string content length quota (8192) has been exceeded while
reading XML data. This quota may be increased by changing the
MaxStringContentLength property on the XmlDictionaryReaderQuotas object used
when creating the XML reader. Line 243, position 38.
I have see a lot of references to this error but none of the solution seem
to help, the solutions say to update your client config, but don't say what
is the client config file, is it the web.config ?
I have created a the web.config file for the WFC service and here are the
contents, but it still does not work, also I have also updated the
maxStringContentLength in the web.config file for the web application.
Does anybody have solution to this problem?
Here's the WFC service web.config file:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="DebugFlag" value="False" />
<add key="RequestDirectory" value="Requests" />
<add key="ReportServicePort" value="8000" />
<add key="ReportsServiceUri"
value="tcp://reports01:8000/ReportsServer.tcp" />
<add key="ReportsServiceUriLocal"
value="tcp://devcon3:8000/ReportsServer.tcp" />
</appSettings>
<system.serviceModel>
<services>
<service behaviorConfiguration="ServiceBehavior"
name="ReportServiceLibrary.ReportService">
<endpoint address="" binding="wsHttpBinding"
contract="ReportServiceLibrary.IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<endpoint address="basic" binding="basicHttpBinding"
bindingConfiguration=""
contract="ReportServiceLibrary.IReportService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below
to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging
purposes, set the value below to true. Set to false before deployment to
avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IReportService"
closeTimeout="08:01:00"
openTimeout="08:01:00" receiveTimeout="08:10:00"
sendTimeout="08:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="16384"
maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_IReportService"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="16384"
maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint
address="http://reports01.vanhoof.com/ReportServiceLibrary/ReportService.svc"
binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IReportService"
contract="IReportService"
name="WSHttpBinding_IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="http://reports01.vanhoof.com/ReportServiceLibrary/ReportService.svc/basic"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IReportService"
contract="IReportService"
name="BasicHttpBinding_IReportService" />
</client>
</system.serviceModel>
</configuration>
Thank you
Peter