473,652 Members | 3,123 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RE: WCF length quota (16384) has been exceeded while reading XML data.

Hi Gary,

As for the setting you mentioned, it is used to custimze the received data
size limitation of WCF binding(such as NetTcpBinding or HttpBinding).
After you have definite a customized Binding setting, you can apply it to
your WCF service via the "bindingConfigu ration" attribute of each <endpoint>

here is a simple WCF service configuration in web.config which demonstrate
this:
=============== =============== ======
<system.service Model>
<bindings>
<wsHttpBindin g>
<binding name="RoleSecSe rviceBinding"
maxReceivedMess ageSize="214748 3647" >

<security mode="Message" >
<message clientCredentia lType="UserName " />

</security>
</binding>
</wsHttpBinding>
</bindings>

<services>
<service name="RoleSecSe rvice">
<endpoint address="" binding="wsHttp Binding"

bindingConfigur ation="RoleSecS erviceBinding"
contract="IRole SecService">
............... .........
</endpoint>
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
</service>

</services>
</system.serviceM odel>
=============== =============== ====

You can get more info on customize WCF binding in the following articles:

#WCF Bindings In Depth
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx

#WCF and Custom Bindings
http://blogs.msdn.com/kaevans/archiv...m-bindings.asp
x

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that

each follow up response may take approximately 2 business days as the
support professional working

with you may need further investigation to reach the most efficient
resolution. The offering is not

appropriate for situations that require urgent, real-time or phone-based
interactions. Issues of this

nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft

Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
Subject: WCF length quota (16384) has been exceeded while reading XML data.
Date: Mon, 10 Nov 2008 15:34:18 -0700

This problem is all over the internet. However I have yet to see a single
straight answer.

My service works fine until I start passing a large byte[] and it gets this
error. My solution consists of a WCF Service Library hosted by IIS. My
WCF
Service Library has an app.config and the hosting website has a Web.config.
They are both pasted at the end of this post. I saw a solution, on A
poster
in a WCF forum that mentioned the following entries could be used:
Nov 11 '08 #1
2 4221
Steven,
I haven't tested your answer but I had pursued this issue on the WCF forum
and got a working solution. It turned out to be more extensive. If you are
interested you can see the thread at
http://social.msdn.microsoft.com/For...2-1ff3e795bcfb
Regards,
Gary Blakely

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:WQ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Gary,

As for the setting you mentioned, it is used to custimze the received data
size limitation of WCF binding(such as NetTcpBinding or HttpBinding).
After you have definite a customized Binding setting, you can apply it to
your WCF service via the "bindingConfigu ration" attribute of each
<endpoint>

here is a simple WCF service configuration in web.config which demonstrate
this:
=============== =============== ======
<system.service Model>
<bindings>
<wsHttpBindin g>
<binding name="RoleSecSe rviceBinding"
maxReceivedMess ageSize="214748 3647" >

<security mode="Message" >
<message clientCredentia lType="UserName " />

</security>
</binding>
</wsHttpBinding>
</bindings>

<services>
<service name="RoleSecSe rvice">
<endpoint address="" binding="wsHttp Binding"

bindingConfigur ation="RoleSecS erviceBinding"
contract="IRole SecService">
............... .........
</endpoint>
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
</service>

</services>
</system.serviceM odel>
=============== =============== ====

You can get more info on customize WCF binding in the following articles:

#WCF Bindings In Depth
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx

#WCF and Custom Bindings
http://blogs.msdn.com/kaevans/archiv...m-bindings.asp
x

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that

each follow up response may take approximately 2 business days as the
support professional working

with you may need further investigation to reach the most efficient
resolution. The offering is not

appropriate for situations that require urgent, real-time or phone-based
interactions. Issues of this

nature are best handled working with a dedicated Microsoft Support
Engineer
by contacting Microsoft

Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
Subject: WCF length quota (16384) has been exceeded while reading XML
data.
Date: Mon, 10 Nov 2008 15:34:18 -0700

This problem is all over the internet. However I have yet to see a single
straight answer.

My service works fine until I start passing a large byte[] and it gets
this
error. My solution consists of a WCF Service Library hosted by IIS. My
WCF
Service Library has an app.config and the hosting website has a
Web.config.
They are both pasted at the end of this post. I saw a solution, on A
poster
in a WCF forum that mentioned the following entries could be used:

Nov 12 '08 #2
Thanks for your reply Gary,

I've also read the forum thread you mentioned:

http://social.msdn.microsoft.com/For...538-eed4-48cd-
8252-1ff3e795bcfb

the solution mentioned there is the same as my last message. You can use
"bindingConfigu ration" attribute to associate the customized binding
setting with your WCF service endpoint.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

--------------------
From: "GaryDean" <gd**********@n ewsgroup.nospam >
References: <#$************ **@TK2MSFTNGP04 .phx.gbl>
<WQ************ **@TK2MSFTNGHUB 02.phx.gbl>
Subject: Re: WCF length quota (16384) has been exceeded while reading XML
data.
Date: Wed, 12 Nov 2008 08:23:34 -0700
Steven,
I haven't tested your answer but I had pursued this issue on the WCF forum
and got a working solution. It turned out to be more extensive. If you
are
interested you can see the thread at
http://social.msdn.microsoft.com/For...538-eed4-48cd-
8252-1ff3e795bcfb
Regards,
Gary Blakely

""Steven Cheng"" <st*****@online .microsoft.comw rote in message
news:WQ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Gary,

As for the setting you mentioned, it is used to custimze the received data
size limitation of WCF binding(such as NetTcpBinding or HttpBinding).
After you have definite a customized Binding setting, you can apply it to
your WCF service via the "bindingConfigu ration" attribute of each
<endpoint>

here is a simple WCF service configuration in web.config which demonstrate
this:
=============== =============== ======
<system.service Model>
<bindings>
<wsHttpBindin g>
<binding name="RoleSecSe rviceBinding"
maxReceivedMess ageSize="214748 3647" >

<security mode="Message" >
<message clientCredentia lType="UserName " />

</security>
</binding>
</wsHttpBinding>
</bindings>

<services>
<service name="RoleSecSe rvice">
<endpoint address="" binding="wsHttp Binding"

bindingConfigur ation="RoleSecS erviceBinding"
contract="IRole SecService">
............... .........
</endpoint>
<endpoint address="mex" binding="mexHtt pBinding"
contract="IMeta dataExchange" />
</service>

</services>
</system.serviceM odel>
=============== =============== ====
Nov 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1514
by: Lonnie Princehouse | last post by:
I've run into some eccentric behavior... It appears that one of my modules is being cut off at exactly 2^14 characters when I try to import it. Has anyone else encountered this? I can't find any mention of such a bug, and stranger yet, other modules that exceed 16384 characters seem to work just fine. In particular, suppose that my module foo.py contains the following as its last line: thing = "goodbye world"
1
2503
by: Rajesh Kapur | last post by:
Hello, Is there a way to assign a limit on the size of a specific database? For example database A can take up no more than 500 MB. One of my databases can potentially grow without any bounds and possibly stop other critical databases from operating. We are using MySQL 4.0.21 on Linux. We use innodb tables. Thanks! - Rajesh
2
3473
by: Al Knowles | last post by:
I am having a lot of trouble understanding the last parameter of the XmlTextReader's ReadBase64 method,length. In all the examples I have been able to find on the web, the developer seems to already know that value and hard codes it. I am attempting to pass a decoded base64 xmlstring from a vb6 application to a web service. The uploaded file is 336 bytes, but if my code works at all, it gets
8
2844
by: Bri | last post by:
Greetings, After making various edits and deletes on aproximately 40,000 records in one table (on the Design Master) syncronization fails with Error 3052 - File Sharing Lock Count Exceeded. After reading the MS KB article 173006 (http://support.microsoft.com/default.aspx?scid=kb;en-us;173006) I increased the locks to 100,000 on the Replica PC and I still get the error. Since the defailt value is only 9500 I would have thought that...
3
3985
by: Hema S via DotNetMonster.com | last post by:
Hi All, My requirement is like I should not use pagination in datagrid... and some times the data exceed over 1000 and my file size if i save it as html becomes more than 7 MB and when i try do any operation in my page i get Max Request Length Exceeded.
2
9480
by: Lloyd Dupont | last post by:
I'm experimenting with an upload file page. I have a few HtmlInputFile on it. While testing it, I selected a 12MBfile, click "upload". I was think I am safe as (at last in the code) I don't upload file bigger than 1MB. At the top of my request there is a module where I access the request and while querying a parameter: string var = context.Request
1
4023
by: lawrence k | last post by:
I've a site where I've just installed a new version of phpMyAdmin (version 2.8.1). I can't get it to work. I'm getting this error: Warning: session_write_close(): write failed: Disk quota exceeded Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)
22
4016
by: semedao | last post by:
Hi , I am using asyc sockets p2p connection between 2 clients. when I debug step by step the both sides , i'ts work ok. when I run it , in somepoint (same location in the code) when I want to receive 5 bytes buffer , I call the BeginReceive and then wait on AsyncWaitHandle.WaitOne() but it is signald imidiatly , and the next call to EndReceive return zero bytes length , also the buffer is empty. here is the code: public static byte...
3
34234
by: =?Utf-8?B?UGV0ZXIgU2NobWl0eg==?= | last post by:
HI, in one of my webservices I need to provide a string to the consuming application that can become really large (depending on user input). Unfortunately, if the string becomes too long, the following error occurrs: System.Web.Services.Protocols.SoapException was unhandled Actor="" Lang="" Message="System.Web.Services.Protocols.SoapException: There was an
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.