WCF服务 启动类库文件 本地
cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE WcfSvcHost.exe /service:<Path.dll> /config:<Path.dll.config>
config
<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="ManagementServiceBehavior"> <!-- 服务元数据配置 --> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors> <services> <!-- 用户服务 --> <service behaviorConfiguration="ManagementServiceBehavior" name="Services.UserServices"> <host> <baseAddresses> <add baseAddress="http://127.0.0.1:8072/services/UserServices"/> </baseAddresses> </host> <endpoint address="" binding="basicHttpBinding" contract="Services.IUserServices"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <!-- 配置结束 --> </services> </system.serviceModel>