WCF关于VS2010的配置

 

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE 下的 devenv.exe.config

在 <configuration> 节最后面加上

 

<system.serviceModel>     <client>       <endpoint name="net.tcp" binding="netTcpBinding" bindingConfiguration="bc" contract="IMetadataExchange" />     </client>     <bindings>       <netTcpBinding>         <binding name="bc" maxReceivedMessageSize="2147483647">           <readerQuotas maxNameTableCharCount="2147483647" />           <security mode="None"/>         </binding>       </netTcpBinding>     </bindings>   </system.serviceModel>

你可能感兴趣的:(VS2010)