小弟我的wcf在本机运行没有关问题,放到其他机子上就报错
我的wcf在本机运行没问题,放到其他机子上就报错
这是我的服务端:
客户端是:
这是我的服务端:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="departmentDataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:9999/DepartmentService/metadata" />
</behavior>
<behavior name="evaluationDataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:9999/EvaluationService/metadata" />
</behavior>
<behavior name="medicalStaffDataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:9999/MedicalStaffService/metadata" />
</behavior>
<behavior name="userInfoDataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:9999/UserInfoService/metadata" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="departmentDataBehavior" name="AppraiseTest.Services.DepartmentService">
<endpoint address="http://127.0.0.1:9999/DepartmentService" binding="wsHttpBinding"
bindingConfiguration="NoneSecurity" contract="AppraiseTest.Contracts.IDepartment"/>
</service>
<service behaviorConfiguration="evaluationDataBehavior" name="AppraiseTest.Services.EvaluationService">
<endpoint address="http://127.0.0.1:9999/EvaluationService" binding="wsHttpBinding"
bindingConfiguration="NoneSecurity" contract="AppraiseTest.Contracts.IEvaluationInfo"/>
</service>
<service behaviorConfiguration="medicalStaffDataBehavior" name="AppraiseTest.Services.MedicalStaffService">
<endpoint address="http://127.0.0.1:9999/MedicalStaffService" binding="wsHttpBinding"
bindingConfiguration="NoneSecurity" contract="AppraiseTest.Contracts.IMedicalStaff"/>
</service>
<service behaviorConfiguration="userInfoDataBehavior" name="AppraiseTest.Services.UserInfoService">
<endpoint address="http://127.0.0.1:9999/UserInfoService" binding="wsHttpBinding"
bindingConfiguration="NoneSecurity" contract="AppraiseTest.Contracts.IUserInfo"/>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="NoneSecurity"
maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">
<readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>
<security mode="None"/>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
客户端是:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_DepartmentService">
<security mode="None" />
</binding>
<binding name="WSHttpBinding_EvaluationService">
<security mode="None" />
</binding>