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=""> <readerQuotas maxNameTableCharCount="" /> <security mode="None"/> </binding> </netTcpBinding> </bindings> </system.serviceModel>