none
Update Service Reference não atualiza valores da configuração de binding RRS feed

  • Pergunta

  • Pessoal,

    alterei os valores maxArrayLength dentre outros no web.config, mas ao realizer um update service reference, os valores dos mesmos no app.config no cliente não foram alterados? Alguém sabe o que pode ser?

    WEB.CONFIG

    <?xml version="1.0"?>
    <configuration>
      <configSections>
        <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
      </configSections>
      <dataConfiguration configProtectionProvider="DataProtectionConfigurationProvider">
        <EncryptedData>
          <CipherData>
            <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAmfar29/1cEqJ1e2zVHnYhAQAAAACAAAAAAAQZgAAAAEAACAAAABUj+GHd/UdnsIFxLUmZEjrrT9FNp2QfKBLeYXtBg+1rAAAAAAOgAAAAAIAACAAAACgOtQQcwn/kSd93VHWS/UPI/9NnZA0Gxb5Jk5i5yGpYoAAAABVxZZW/gma9Dh9hU4jJlueCL9APHSn1buzDvXonOgeGbnoV3jnYfAOYXY0/GnO/otfZLjP3l8jHf21sZgdjADEkrH3mQNDQPg+G5uCsIXskdUw1iISCjDFi021Tfmj4KfP5uDXMNt48CHJZhn0gO+4wPmqbfg1afzRsYGxqJAZ8UAAAAB542BX3xT6SkDicN2m6AqEdEvZP4iT5fm9fNI3MKUSzJ6PdnmGl5jJp3RBcXc6CQzZPcMpfxUEmP7+l0OdEj61</CipherValue>
          </CipherData>
        </EncryptedData>
      </dataConfiguration>
      <connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">
        <EncryptedData>
          <CipherData>
            <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAmfar29/1cEqJ1e2zVHnYhAQAAAACAAAAAAAQZgAAAAEAACAAAAD3U2hFmPltHhLl4oqI4iPr7DV6msgkNZct3614gSqpbgAAAAAOgAAAAAIAACAAAAA6lq+SwtzNcj51a3LuRRZ7u4ghMsy94aVWCQvKuGRJYbABAACItbDNqq1VZFCwbTEeIcWt+hx2oLYjfm1GwNG0akwVmc7K7q5NhFxvDSfCZr2aPGozLr+bKF2mXf4nB0Srprbz92YqyOtPUsMWRlPsyCvVus+mf9oyxn4axUr5V+bmVPlBae6gvnXoxeAkdl3j3J/lKs3FapqJxHBl8f1QA+KOAT2BYBvUX37gr0engZngt1BzYxLs3C6/x9/mxbDLEP7VllnLItubLWrQtUbckPmmxeyF+yhUKjjhDhyyFXDNcDHAaYerRTplIbeA732NnejGdrYyU6eTVCqe6cGl/rIBB/bIqVkNROPrY3YZpMu0EHXzJqzbKM0FDA4Q9ulYKIzc9J2NOvmrhS6QvG2sBVGU1wCRbINw2923DTDLXWh/BOa1WU8LbhsRD56mEgNiw+Gb2Wo5jeqZ1ABc2LgAb4FFPgDsbrZaAd8259SF1NC48fE61kijfeaKFwXYG29sFH2oPpkXuiTLKi0Kh2Fywg2cWuxFz3HnvUB4mzIPUsoW9SpO7RY25igni5K+EjUAVMAfcPbKtjEWLdmiLBciJNxAgTuiCLG8Dul1PoTu0Bq+zXtAAAAAHqgGKdmxRB3I9iSh1ajjoP7qAIU5IshlFje/TWGI6OTCSQfVFCIdcYftj5GsgXcKQbIhUHO5SYyjLxJRmPSVPQ==</CipherValue>
          </CipherData>
        </EncryptedData>
      </connectionStrings>
     
     
      <system.web>
        <compilation debug="true" targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
        <services>
          <service behaviorConfiguration="metadataBehavior" name="WCF.Service1">
            <endpoint address="" binding="basicHttpBinding"
              bindingConfiguration="BasicHTTP" contract="WCF.ISalomao" />
           
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
            <behavior name="metadataBehavior">
              <serviceMetadata httpGetEnabled="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <basicHttpBinding>
            <binding name="BasicHTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
                     maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
              <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            </binding>
          </basicHttpBinding>
        </bindings>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>

    </configuration>

     

    APP.CONFIG

    <?xml version="1.0"?>
    <configuration>
       
      
        <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="BasicHttpBinding_ISalomao" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            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://localhost:22397/Salomao.svc" binding="basicHttpBinding"
                    bindingConfiguration="BasicHttpBinding_ISalomao" contract="SalomaoServiceReference.ISalomao"
                    name="BasicHttpBinding_ISalomao" />
            </client>
        </system.serviceModel>
    </configuration>

     


    Alvimar A Silva

    quarta-feira, 28 de novembro de 2012 17:59

Todas as Respostas