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

Top 5 Contributors of the Month
Post New Web Links

transport size limit for WCF

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :WCF
Hi, I am returning a Cashflow object from a WCF service, like this. [OperationContract] [ServiceKnownType(typeof(Cashflow))] Cashflow GetCashflow();   The cashflow objects contains a list of double values. After receiving the cashflow object in the WCF client, i am printing the double values contained in it in a text   file. It works well, till the file size is around 500 kb. If the cashflow object is bigger, meaning, the list contains more double values, I get an exception "An error occurred while receiving the HTTP response to http://server.corp.net:1000/service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details." When I saw the logs in the IIS, the sc-status was 200 and sc-win32-status was 64. I have put maxReceivedMessageSize as 2147483648 in the config file of the client. I am using the wsHttpBinding. I think that I am getting the error coz I am trying to transport a large amount of data through WCF. But in that case the standard error is "The maximum message size quota for incoming messages has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." Is it possible in some way to return very large data objects

View Complete Post

More Related Resource Links

error code for size limit reached

What is the error code, when the DB reaches the 10GB limit. I just wasn't ready yet to check the 36.000 error codes of SQL Server 2008 R2.

database size limit about SQL Server 2005 Express

I know that there is a size limit (4 GB) for SQL Server 2005 Express, but I am not quite sure if the limit is applied for only ONE database data file or for ALL the database data, suppose I have two databases DB1 and DB2, so which of the following statement is correct? A. The size limit for DB1 is 4GB, and the size limit for DB2 is also 4GB, so if DB1 is 3G and DB2 is 3.5G,that will be OK. B. The total size for both DB1 and DB2 can not be larger than 4GB, which means if DB1 is 3G, then DB2 can not be large than 1G.

SQL Server XML Size Limit

Hello,I am aware that the maximum amount of space an xml variable can hold is 2GB, and I am fairly certain that is not my problem here; though it does seem to be some sort of size constraint.. kind of? First, my example code, basically generating xml from a table of 4 columns and 275 records: -------------------------------------------------------------------/* SETUP */use tempdbgocreate table mytest (col0 int,col1 varchar(30),col2 varchar(30), col3 varchar(30))godeclare @v intset @v=0while @v<275begin  insert into mytest values (@v,                             'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',                             'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',                             'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC')  set @v=@v+1end/* TEST */DECLARE @xmlDoc XMLSET @xmlDoc = (                SELECT 'BEGIN' as '@BEGIN',                      ( SELECT col0 as '@REC_NUM',                               col1,                                col2,                               col3                          FROM mytest                        FOR XML PATH('MYPATH'), TYPE )                FOR XML PATH('XML'), root('ROOT')                )SELECT @xmlDoc as 'WHY IS THIS EMPTY?'/* CLEANUP */drop table mytest------------------------------------------------------------------- My problem is that after creating and populating the table, the code in the 'TEST' section does

Xml size limit


 Hi guys.

I would be grate if someone would let me know what size I should restrict my xml files to on a new website.

I designing a cart for an existing site and looking  to store basic product records in xml which can be called via httprequest etc. The site currently has between two to three hundred sequencial users and I need to clarify the performance limitations and how they may apply before I proceed. Any assistance would be gratefully received




Size limit for STSADM -o backup


Hi all

Is there a size limit for the .dat backup that can be taken using STSADM -o backup

and for the .dat that can be restore using STSADM.

Thanks in Advance


limit size of a bar on bar chart when we have a single bar in ssrs 2005


Hi I am having TOP N(N=15,25,50) report which is parameterized.i.e when user selects the 'N' eg(15) value from the drop down list the query is going to pull TOP 15 record and display on report in a barchart form.Report is working well at  this point.But when user selects N=15 and we are having only one record then that record is occupying whole space and forming a square on report.Can anyone say how to limit size of that bar so that it is not going to form as a square and display on report


Thanks in advance.

SharePoint 2010 Client Object Model upload size limit



for the client object model i found 2 methods for uploading files:

  • Microsoft.SharePoint.Client.File.SaveBinaryDirect
  • Mircrosoft.SharePoint.Client.FileCollection.Add

The 1st methods use a stream and the 2nd use a byte-array as parameter. This morning i noticed that with the Add-Method of the FileCollection-Class I only can upload files which are smaller than 3 MB. With larger files I get always the exception (400 - Bad request).

The SaveBinaryDirect-Method seem to have no upload size limit. I can upload files which are 50 MB large. Unfortunatley it gives me no return value, but i like to get an object with id/guid for later operations (update/delete).

Is it possile to change the upload size limit for the add-method?

Thanks for help!

How do I limit size of Usage ( Usage and Health Data Collection ) database size please?



How do I control the size of my usage database ( Usage and Health Data Collection database ) in SP2010 so it never exceeds a certain size?

Its not clear how you do this - does anyone know? I want to set it so it never exceeds 100 GB in size but logs pretty much everything.

Thanks in advance,


SmtpClient attachment file size limit in .Net 4.0?


I am having trouble sending any file over about 3MB as an attachment using the SmtpClient class. I have no problems with smaller files. I get an index out of range error. I founf a reference on another site that said it supposed to be a known bug with the framework 4.0. I tried to change the target framework for my dll that actually sends the email back to 2.0, but is called from a 4.0 framework website, but that did not fix it.

Does anyone know if this is a known issue and how do you find out if/when it is fixed or if there is a patch available?






Submit InfoPath Form Attachments one after another. Avoiding Sharepoint 50mb size limit


As the title says. How would I make an infopath form submit an attachment, then after being submitted; Submit the 2nd attachment, and so on.

The problem I'm running into is the 50mb file attachment limit in SharePoint. It is not an option to change this Max amount. This way the 4 attachments which are all around 15 mb, won't total 60mb at one time and go over the file size limit.


what is limit on max size of XML datatype which we can pass to stored procedure and what is most el

what is limit on max size of XML datatype which we can pass to stored procedure  and what is most elegant way to pass huge XML to Stored procedure

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.

Set Custom Paper size in C#.net 3.5


Dear All,

I have to set custom paper size 6X8 inches

plz tell sugest me code how to do it.

in C#.net 3.5

i m using Asp.net 3.5 Crystal report

i have to do it programiticlly



Reduce Image Size


How to reduce the image weight using asp.net, without lose of image quality and image pixels. For example i have an image with the size of 4 MB (3024*2045), so how to reduce the image weight ie 4 MB to 1 MB without lose quality in the same pixels ie(3024 * 2045) using asp.net.

Detect Browser Screen Size??


Hi Everyone,  I need to detect the size of the user's screen for mobile devices (especially the BlackBerry). I've read a lot of pages that seem to refer me to the Request.Browser object, but I'm finding that this object doesn't have the correct values. For example, I have a BlackBerry and when I use the Request.Browser to get the screen size, it tells me it is 640x480. Well, I know it's not that big since an image of 300px wide just barely fits. Also, when I run on my desktop browser, it also says my screen is 640x480. I can assure you, it is not 640x480! ha!

  How does anyone reliably get the browser's screen size?? Do I have to revert to some kind of JavaScript? If so, where can I read more about it? Will it be any more reliable? Someone must have an idea about this. Thanks in advance!!

Obtain mobile device screen size



I am trying to get the screenHeight and width:


 // Get MobileCapabilities from current Request.Browser
        MobileCapabilities currentCapabilities = (MobileCapabilities)Request.Browser;
        // get a property of the  browser 
        Response.Write(currentCapabilities.ScreenPixelsHeight +  " <br>");
        Response.Write(currentCapabilities.ScreenPixelsWidth  + " <br>");


 but this is always show that the Height is 480 & the width is 640

I am trying on HTC with Opera Mobile 9.5

Any Advice?

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