none
Windows 8 x64 and Web Service problem RRS feed

  • Question

  • Hello,

    I have weird problem using Web Service in C# desktop application on Windows 8 x64. During uploading large file (~13MB), application and all network connections hang. There is no exception, no information, absolutely nothing. The same application run on Windows 7 32bit and 64bit works perfectly.

    Here my binding config:

    <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="exWSSoap" closeTimeout="00:05:00" openTimeout="00:05:00"
                        receiveTimeout="00:30:00" sendTimeout="00:30:00" allowCookies="false"
                        bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferPoolSize="524288" maxBufferSize="40000000" maxReceivedMessageSize="40000000"
                        textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
                        messageEncoding="Text">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="40000000"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                </basicHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://....asmx"
                    binding="basicHttpBinding" bindingConfiguration="exWSSoap"
                    contract="exWS.exWSSoap" name="exWSSoap" />
            </client>
    </system.serviceModel>

    On server site configuration allows upload large files by:

    <httpRuntime maxRequestLength="2097151" />
    ...
    <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="2097151000" />
          </requestFiltering>
    </security>

    Web Service is as follow:

    namespace App
    {
        [WebService(Namespace = "urn:app:services:ex")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        public class exWS : System.Web.Services.WebService
        {
            [WebMethod]
            public bool UploadFile(byte[] data, string name) { }
        }
    }

    Any help ?


    Monday, March 4, 2013 7:02 PM

All replies