none
WCF RIA的配置文件 RRS feed

  • 问题

  • 我的项目是Silverlight 4+ Wcf RIA,,,,,,注意不是Wcf

    谁帮我看一下,,,下面的配置。。。我有三个问题请请教
    1,这个配置有没有问题啊,,,因为我放到我的项目里,项目也不会报错,但也没有起作用
    2,在<Service>节,,,contract="???"   这里应该填什么啊?
    3,ConnectionTimeOut在哪里配置啊?

    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
        <bindings>
          <basicHttpBinding>
            <binding name="NewBinding0" 
                      openTimeout="00:06:00"
                      receiveTimeout="00:06:00" closeTimeout="00:06:00" sendTimeout="00:06:00"
                     maxReceivedMessageSize="2147483647"
                     maxBufferSize="2147483647"
                     transferMode="Buffered">
              <readerQuotas   maxArrayLength="1024576" />
              <security mode="None" />
            </binding>
          </basicHttpBinding>
          <customBinding>
            <binding name="customBinding0"
                     closeTimeout="00:06:00"
                     openTimeout="00:06:00"
                     receiveTimeout="00:10:00"
                     sendTimeout="00:06:00">
              <binaryMessageEncoding>
                <readerQuotas maxArrayLength="1073152"/>
              </binaryMessageEncoding>
              <httpTransport maxReceivedMessageSize="2147483647"/>
            </binding>
          </customBinding>
        </bindings>
        <services>
          <service name="FPDB_SLservice">
            <endpoint address="" binding="customBinding0" bindingConfiguration="NewBinding0" contract="???"/>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>

        <behaviors>
          <serviceBehaviors>
            <behavior name="abc">
              <serviceTimeouts transactionTimeout="00:06:00"/>
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
               <!--为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点-->
              <serviceMetadata httpGetEnabled="true"/>
               <!--要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息-->
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <serviceThrottling maxConcurrentCalls="1000000" maxConcurrentSessions="1000000" maxConcurrentInstances="1000000"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>

      </system.serviceModel>


    不吝赐教
    2011年3月22日 2:16

答案

全部回复