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


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

IE sending content-length:0 WCF throwing nullreferenceException

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :WCF
 

So my client has uncovered this wierd scenario and I am not happy/satisfied with the solution the IE support team offered.

The scenario is IE 8 on Windows XP with a client certificate installed. This happens only against one of the environments and only on tabs 1 & 2, the 3rd tab works fine. If we use Fiddler to watch the request it fixes the problem.

Here is what I believe to be the issue. We have used some other tools to log the request and see the content-length set to 0 when it fails and some valid number, like 62 when it succedes. Fiddler seems to correct the content length value hence why it works.

From what I have gathered this content length value is checked somewhere deep in the WCF boiler room and therefor not something we could just overwrite to force it to ignore that value and proceed to deserialize the JSON for us.

Something I did learn about IE is when you open the first tab it secretly launches 3 threads, with two reserved for the next 2 tabs you open. Somehow the 3rd tab always works. It also works just fine in Chrome & FireFox and IE on Windows 7. It is just isloated to IE 8 on Windows XP.

The IE support team said to disable preauthorization in the browser. But honestly that did not set well with me since the 3rd tab works. So I thought I would share the issue here since I doubt we will get an IE fix, I thought ma


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

Sending an e-mail with the content of a GridView in asp.net 2.0. problem

  
Hi experts,  I am Sending an e-mail with the content of a GridView in asp.net 2.0. Everything is working fine , but my problem is that  it is also sending "DELETE" LINKLabel to the email. Is there anyway so that only Content of Gridview will go to email and "Delete" Link will not go. Is it possible ??? Thanks in Advance

Sending form content info constantly

  

Hi,

I need to send the options set in my window to another app I made. Basically my WPF works as a control application for another app, which will be run in another computer. Info is sent via sockets.

The problem is, I need to constantly send the info through the net, so I would be needing something like a Refresh or Update function that is run "every frame". Is there anything similar in WPF?

Thanks in advance.


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

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

"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.

Sending document to Content Organizer with rule applied generates GET request error

  

When I attempt to send a document to a Content Organizer through a custom send to location configured in Central Admin I am getting the following error.

Updates are currently disallowed on GET requests.  To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.

I run into this problem with content types that have rules defined for them. So if there is no rule, it gets sent to the drop off library. If there is a rule, I get the error in the browser.

I am getting these errors in the Event Viewer:

*Error loading and running event receiver Microsoft.Office.DocumentManagement.DocumentSets.DocumentSetEventReceiver in Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.

: Object reference not set to an instance of an object.

*The http://<domain>/site/_vti_bin/OfficialFile.asmx site is not properly configured for this request.

 

Any ideas?


NullReferenceException when using Content Query webpart with BCS List

  

 

Hi,

I have a BCS List in my SP 2010 solution, which works fine. Now I want to add the Content Query web part that sources its data from this external list. In the Content Query web part properties, when I select my External list in the "Show items from the following list" field, I get this exception:

[NullReferenceException: Object reference not set to an instance of an object.]
  Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.OnPreRender(EventArgs e) +216
  System.Web.UI.Control.PreRenderRecursiveInternal() +107
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Control.PreRenderRecursiveInternal() +223
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393

Is it even possible to do this? Or is there another way? Thanks in advance!


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

Sending a Form Content via Fax

  

Dears, 

I want to send Faxes via my application. I have its dll and it works good, I have static text as a Fax page that should be changed some of its contents based on its reciever.

I am using a HTML Table as my Fax template with some pics and texts in its cells and I read its reciever name and email address from DB.

What shall I do to send whole of table as a fax??


WCF sends incorrect httpheader content length- System.ServiceModel.FaultException: WSWS3400I: Info:

  
Hi
I have WCF client pointing to WebSphere service both (service and client) are on HTTPs, the issue occurs intermittently. WebSphere throws this exception WSWS3400I: Info: unexpected exception.

This issue occurs intermittently. On random occasions the web service throws this exception System.ServiceModel.FaultException: WSWS3400I: Info: unexpected exception.
As per IBM the client sends incorrect httpheader content length.

http://www-01.ibm.com/support/docview.wss?uid=swg21239783

But in the svc tracer there is no content-length in webheaders.Can some one assist me in resolving this issue.

==== Request =====
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>0</EventID>
<Type>3</Type>
<SubType Name="Information">0</SubType>
<Level>8</Level>
<TimeCreated SystemTime="2010-11-04T17:37:23.0438590Z" />
<Source Name="System.ServiceModel.MessageLogging" />
<Correlation ActivityID="{cffe16f1-6daf-4759-ad63-0152db65b0d9}" />
<Execution ProcessName="w3wp" ProcessID="6904" ThreadID="1" />
<Channel

SharePoint Tutorial - Content Types

  
SharePoint content types provide users with a way to manage and organize content in a more meaningful way. It's a reusable of settings you want to apply to a particular type of document in a library or item in a list.

Enabling Users to Maintain SharePoint Content

  
When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

Application Vs. Content Pages in SharePoint

  
SharePoint has two types of ASPX pages. One type is the application page, also known as a _layout page. The other type of ASPX page is a content page, also known as a site page. Each of these page types is stored in a different location in SharePoint. When developers create custom ASPX pages, they must decide on the page type.

Enabling Users to Maintain SharePoint Content

  
When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Content Types in MOSS 2007

  
In this article I will try to describe the one of the best feature in Microsoft office Share Point 2007 called Content Types.

Content types are simply collection of contents.Each content in a Content type can have different settings.Basically it is a reusable collection of settings which you want to apply to a particular category of contents.

Content Query Web Part missing in SharePoint 2010

  
If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.
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