none
Chunked encoding upload is not supported on the HTTP/1.0 protocol. RRS feed

  • Question

  • Hello,

    today I installed Visual Studio 2013 Professional and upgraded my solution, which is developed with Visual Studio 2010.

    Now I have the problem, that the connection to webservice fails. Before I upgraded it works perfect.

    The exception is: Chunked encoding upload is not supported on the HTTP/1.0 protocol.

    The used binding is: basicHttpBinding

    The used Transfermode: streamed

    The MessageEncoding: Mtom

    The webservice is hosted by an IIS 6.

    I searched long on the internet, but nothing helped.

    For answer I will be pleased.

    Tuesday, July 22, 2014 8:48 AM

Answers

All replies

  • Hi,

    Please first try to use the buffered mode instead of the streamed mode as following to see if it helps:

    <basicHttpBinding>
                <binding name="BasicHttpBinding_MyService" 
                    closeTimeout="00:03:00" openTimeout="00:03:00" 
                    receiveTimeout="00:10:00" sendTimeout="00:03:00" 
                    allowCookies="false" bypassProxyOnLocal="false" 
                    hostNameComparisonMode="StrongWildcard" 
                    maxBufferSize="2147483647" maxBufferPoolSize="2147483647" 
                    maxReceivedMessageSize="2147483647" 
                    messageEncoding="Text" textEncoding="utf-8" 
                    transferMode="Buffered">
       
                 </binding>
            </basicHttpBinding>
    

    Then please try to refer to this simialr thread:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/c9656519-a104-4fb8-b1cc-3075c41f7895/wcf-http-connection-and-systemnetprotocolviolationexception?forum=wcf .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, July 23, 2014 5:06 AM
    Moderator
  • Hi,

    I can't change the transferMode to "Buffered" because the message contains a lot of data. I would get a new Exception.

    Why I get a exception with the new Visual Studio Version?

    It works fine with Visual Studio 2010.

    The binding:

    <basicHttpBinding>
            <!---Da wir für App evtl. viele Bilder etc. verschicken, muss das Binding für den AppFormatierungsJob gesondert ablaufen. Der Transfermode "Buffered" verbraucht zuviele Resourcen, deshalb wurde auf "Streamed" umgestellt. Leider ist dies nur beim BasicHttp-Protokoll möglich.-->
            <binding name="AppFormattingBinding" closeTimeout="00:05:00"
              openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:05:00"
              allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"
              textEncoding="utf-8" transferMode="Streamed" useDefaultWebProxy="true"
              messageEncoding="Mtom">
              <readerQuotas maxDepth="32" maxStringContentLength="2147483647"
                maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
            </binding>
          </basicHttpBinding>

    Thank you for your answer.

    Martin Hilmer


    • Edited by hilmerm Tuesday, August 19, 2014 8:29 AM
    Tuesday, August 19, 2014 8:24 AM
  • An update to the new Verison of IIS helped to solve the problem.
    • Marked as answer by hilmerm Monday, October 13, 2014 1:13 PM
    Monday, October 13, 2014 1:13 PM