【发布时间】:2012-02-01 22:27:30
【问题描述】:
我在远程机器上的 iis 中托管了 wcf 服务,并尝试从另一台机器访问该服务。两台机器都在同一个域中。客户端的 app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IReportReceiver" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="None">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://nts0104:5950/ReportReceiver.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IReportReceiver"
contract="ServiceReference1.IReportReceiver" name="WSDualHttpBinding_IReportReceiver">
<identity>
<userPrincipalName value="ReportServer\reportserver@ac.lp.acml.com" />
</identity>
</endpoint>
</client>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Error"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "c:\log\Traces.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
</configuration>
该服务在特定池和帐户 reportserver@ac.lp.acml.com 下运行。 不知道你会发生这种情况。冲浪了很多,没有任何帮助。请在你的解决方案中提供。 谢谢
【问题讨论】:
标签: wcf