.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

The Maximum String contenet length quota(8192) has been exceeded while reading xml data

Posted By:      Posted Date: September 19, 2010    Points: 0   Category :WCF
 
Hi,
I am using WCF service and calling in vb6.0 application.
I am using typed contract moniker object to access the services from VB6.0. Everything working fine.
Problem:
Service hosted in windows service using nettcp binidng. Service method return type is XMl string. While I try to access the method I am getting the error message "The Maximum String contenet length quota(8192) has been exceeded while reading xml data". I have modifed readerquota Service appconfig file and svcutil.exe generated client config file.
I put the client config fiel in vb application exe folder.

I have mentioned the Bindingconfiguration name also.


When I changed the cleint config file with junk data vb application giving the  same error. I am not sure whether VB 6.o using client config file.

Please help me.


<binding name="NetTcpBindingEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize


View Complete Post


More Related Resource Links

The maximum string content length quota (8192) has been exceeded while reading XML data.

  
Hi, I have been working on implementing a WCF service and have run into this problem with the maxStringContentLength.  I have read a bunch of posts here on how to correct it and none of them have worked.  I have updated my web.config in my local IIS5 published service to be maxStringContentLength="2147483647" and have updated my application's app.config to be maxStringContentLength="2147483647".  I delete all DLL's, rebuild, restart IIS, make sure all VS 2008 virtual webs are stopped, republish multiple times...even reboot my machine and I continually receive the following error message:The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/qlStatement. The InnerException message was 'There was an error deserializing the object of type System.String. 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 171, position 35.'.  Please see InnerException for more details.I am running the service on my local machine: Win XP SP2, IIS5, .Net 3.5, VS 2008Here is my WCF service's servicemodel section of the web.config:    <system.serviceModel>    <bindings>      <wsHt

The maximum string content length quota (8192) has been exceeded while reading XML data.

  

 Hi, Im getting the error when I am sending the large message to WCF service, I've seen previous post regarding the same prob and tried all the possibilities but still facing the problem.
Changed the reader quotas values of Client config and service config but no help.

Also tried by adding the below code in client and service  

 

 BasicHttpBinding basicBinding = new BasicHttpBinding();
        basicBinding.MaxBufferSize = Int32.MaxValue;
        basicBinding.MaxReceivedMessageSize = Int32.MaxValue;
        basicBinding.MaxBufferPoolSize = Int32.MaxValue;

        XmlDictionaryReaderQuotas myReaderQuotas = new XmlDictionaryReaderQuotas();
        myReaderQuotas.MaxStringContentLength = Int32.MaxValue;
        myReaderQuotas.MaxArrayLength = Int32.MaxValue;
        myReaderQuotas.MaxBytesPerRead = Int32.MaxValue;
        myReaderQuotas.MaxDepth = Int32.MaxValue;
        myReaderQuotas.MaxNameTableCharCount = Int32.MaxValue;

But still facing the issue.

Here is my

"The maximum string content length quota (8192) has been exceeded while reading XML data. "

  
I keep getting this when I send a ton of text over the line... and this is SMALL compared to some of the text I want to move.  Any ideas?

The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'UpdateBlogEntry'. 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 180, position 518.

The maximum string content length quota (8192) has been exceeded while reading XML data.

  

I'm getting this message when invoke an operation on the service.

I have the readerQuotas configured in the client's config file as follows:

<readerQuotas maxDepth="32" maxStringContentLength="2048000" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />

I

The maximum array length quota (16384) has been exceeded while reading XML data.

  

 

I am getting this error when I try to send a message to my service. I have updated the ReaderQuotas on both the client and the server. Is there something else that I need to do to get the service to accept the message?

 

-paul


Maximum memory for string ? . System.MemoryOutOfException Occurs when reading the Content of the fil

  

Hi,

I have a C++ code which reads a file [vtk file - its similar to text file only]. and try to store it in string.

here's the code:

String^ ParallelProjectionRenderer::GetVolumeDataAsString(String^ FileName)

{
    vtkSmartPointer<vtkDataSetWriter> sWriter = vtkSmartPointer<vtkDataSetWriter>::New();

    String^ FileName = "D:\\Users\\...";

    char * sptName = static_cast<char *>(Marshal::StringToHGlobalAnsi(FileName).ToPointer());

    sWriter->SetFileName(sptName);

    sWriter->Register(nullptr);

    sWriter->SetInput(this->dataSource);

    sWriter->SetFileTypeToASCII();

    sWriter->Write();

    sWriter->Delete();

    String^ result= File::ReadAllText(FileName);   [it breaks here with system.memoryoutofexception when the file size is huge]

    return result;

}

this code executes fine when the file size is less than 8mb.

I wanted to know whats the maximum memory allocated to the string.


As a workaround i skipped reading out in C++ code. and i tried to read the file contents in asp.net C# code and stor

Reading xml data from xml string

  

Hi

 

i have string like below:

<?xml version="1.0" encoding="utf-8" ?>

<veriler>

                <veri>

                               <column>txtname</column>

                               <value>jack</value>

                </veri>

                <veri>

                               <column>txtlastname</column>

                               <value>daniels</value>

  

Maximum request length exceeded (Yet Another)

  

I have found numerous links and articles that all suggest modifying either the Web.config or Machine.config file for the maxRequestLength value which is by default 4MB.

However, I have modified the web.config file several times over in the ReportServer directory as well as the ReportManager directory and nothing seems to resolve this issue on my system.

I am running SSRS 2008 on Windows 2008 64-bit Enterprise with 32GB RAM and a dual 3.33GHz processor. Also running 2 separate instances of Report Server on this system so I'm not certain if I should be looking at some other web.config file but I believe both instances should be using the same file. Also should mention that the report has 16 parameters.

1 Article suggested to execute iisreset after altering the file but I am running IIS 7.0 which doesn't use iisreset. So instead, I stopped and restarted the Reporting Server instance using the RS Configuration Manager but it doesn't seem to make a difference.

Hopefully someone here can help me out??? Are there any other aspects of the configuration that I should be looking at to resolve the problem?

PLZ HELP!


The maximum message size quota for incoming messages (65536) has been exceeded.

  

I'm at my wit's end trying to resolve this error.  I am accessing a WCF Service with a Silverlight 4 application.  I have no issues retrieving large amouts of data from the service, but whenever I try to send it back to the service, I get thsi error.  Endless Bing seaches return essentially the same solution, but nothing seems to resolve it.  Below is my web.config:

<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />

Maximum Request length Exceeded Error - web.config modification does not fix

  

I am running into the Maximum Request length exceeded error on one of my SSRS reports - SQL Server 2005 SP2.  I modified my web.config file as described in this and other threads:

http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/31a74097-28cc-4f29-9397-fdeda1cca994

I restarted all services (IIS, Reporting services) and while it fixes the problem with the parameter, I am getting other errors that are preventing the report from rendering as expected. For example, I have a document map in the report which no longer displays, and expand/collapse capability in the report doesn't work.  Any other ideas for fixing this issue? 


Handle: maximum request length exceeded

  

When uploading a file over 4mb I receive error: maximum request length exceeded.

This is fine - I don't want users to upload files any larger.

But, anyone know how to handle the error in a clean way?

It appears I can't avoid it with an IF statement or Try/Catch block.

 

Thanks!


XmlDictionaryReaderQuotas content length quota (8192) error during client send to wcf

  

I have a silverlight app (non asp, non IIS) and wcf service.

When i read large data from the wcf service 60k+ then the silverlight app successfully retrieves the information from the wcf service.
However....
When i try to send (silverlight client to wcf service) large data 30k+ I get the XmlDictionaryReaderQuotas error but when I send 2k information then everything works fine.

This is my ServiceReferences.ClientConfig file

 

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IService1" maxBufferSize="2147483647

WCF: The maximum message size quota for incoming messages (65536) has been exceeded

  

When using WCF services you may get the following error: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." This error is given because of size limits set to responses in your application configuration.

You need to increase the value of two limiting parameters: maxBufferSite and maxReceivedMessageSize. In my example these values are set to 5000000.


<?xml version="1.0" encoding="utf-8"

The number of calls to the Changed event for a single update in the data exceeded the maximum limit.

  

Dear All,

We have hit the big limit of 16 change events per single update.  Is there any way to extend this to say 25, we are not using infinate loops or anything.

Alternatively, is it possible to disable some change events when values are updated?

Thanks

William Man


BCP Error user api layer: external error: A data length of 40 exceeds the maximum length allowed for

  

A client using our product that uses SQL Express for its database is getting an error during a BCP OUT command. The error is

CTLIB Message:  - L1/O1/S1/N138/1/0:

: user api layer: external error: A data length of 40 exceeds the maximum length allowed for password data

None of our other client installs get this error so we are assuming it is security related.

 

Does anyone know where to configure this?

Also, if we change the password to something smaller, we then get a different error saying the server cannot be found even though it is there. We are again assuming this is security related.

 

I have no idea where to look to figure this out. I was hoping for some sort of SQL error number but none was provided in the error message.

Thanks,

Tony.

 

 

 


Developer

Maximum memory for string ? . System.MemoryOutOfException Occurs when reading the Content of the fil

  

Hi,

I have a C++ code which reads a file [vtk file - its similar to text file only]. and try to store it in string.

here's the code:

String^ ParallelProjectionRenderer::GetVolumeDataAsString(String^ FileName)

{
    vtkSmartPointer<vtkDataSetWriter> sWriter = vtkSmartPointer<vtkDataSetWriter>::New();

    String^ FileName = "D:\\Users\\...";

    char * sptName = static_cast<char *>(Marshal::StringToHGlobalAnsi(FileName).ToPointer());

    sWriter->SetFileName(sptName);

    sWriter->Register(nullptr);

    sWriter->SetInput(this->dataSource);

    sWriter->SetFileTypeToASCII();

    sWriter->Write();

    sWriter->Delete();

    String^ result= File::ReadAllText(FileName);   [it breaks here with system.memoryoutofexception when the file size is huge]

    return result;

}

this code executes fine when the file size is less than 8mb.

I wanted to know whats the maximum memory allocated to the string.


As a workaround i skipped reading out in C++ code. and i tried to read the file contents in asp.net C# code and store it on string.

S

Maximum request length exceeded

  

Hi:

I created an asp.net to upload files.
My code is written in visual basic.net

When I try to upload a file bigger than my
maxRequestLength setting I get this exception:

(0x80004005): Maximum request length exceeded.

I can not catch the exception even using try-catch-finally

Is there a way to catch this exception?

Thanks!!


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend