0
我是WCF新手为什么WCF端点地址每次都会改变?
为什么每次运行这个服务时,它都运行在不同的地址上,而不是在我写的地址中运行?
我很抱歉,如果这是很容易:(
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="PBServiceBehavior" name="PhoneBookService.PbService">
<endpoint name="PbHttpEndpoint"
address="http://localhost:9001/PhonebookService"
binding="basicHttpBinding"
contract="PhoneBookService.IPbService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="PBServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>