WCF配置文件笔记

来源:互联网 发布:code app数据 编辑:程序博客网 时间:2024/06/16 17:20
<?xml version="1.0" encoding="utf-8"?><configuration>  <appSettings>    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />    <add key="CloudTask" value="Data Source=192.168.1.250;Initial Catalog=CloudTask;User ID=sa;Pwd=201314...;"/>    <add key="Job_Msg" value="Data Source=192.168.1.250;Initial Catalog=Job_Msg;User ID=sa;Pwd=201314...;"/>  </appSettings>  <system.web>    <compilation debug="true" targetFramework="4.5" />    <httpRuntime targetFramework="4.5"/>  </system.web>  <system.serviceModel>    <behaviors>      <serviceBehaviors>        <behavior name="metadataSupport">          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>        </behavior>      </serviceBehaviors>    </behaviors>    <bindings>      <wsHttpBinding>        <binding name="NoneSecurity"          maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">          <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>          <security mode="None"/>        </binding>      </wsHttpBinding>    </bindings>    <protocolMapping>      <add binding="basicHttpsBinding" scheme="https" />    </protocolMapping>    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />    <services>      <service name="WcfQueue.QueueTask.TaskHandler" behaviorConfiguration="metadataSupport">        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" contract="WcfQueue.QueueTask.ITaskHandler"/>      </service>    </services>  </system.serviceModel> <system.webServer>    <modules runAllManagedModulesForAllRequests="true"/>    <!--        若要在调试过程中浏览 Web 应用程序根目录,请将下面的值设置为 True。        在部署之前将该值设置为 False 可避免泄露 Web 应用程序文件夹信息。      -->    <directoryBrowse enabled="true"/>  </system.webServer></configuration>
0 0
原创粉丝点击