我们正在运行更新的 2008 服务器,在开发机器上运行 TFS 2012 和 VS 2012。该解决方案使用 MSBuild 在服务器上部署和运行测试。所有测试都通过了开发框,但只有不调用本地部署的 WCF 服务器(托管在 IIS 中)的测试失败。所有服务调用的例外情况如下:
> Test method TestProject.TestClass.TestMethod threw exception:
> System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel,
> cannot be used for communication because it is in the Faulted state.
>
> Server stack trace:
> at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan
> timeout)
> at System.ServiceModel.Channels.ServiceChannel.System.IDisposable.Dispose()
> Exception rethrown at [0
enter code here
NETWORK SERVICE 具有相应的权限。电源已打开。有什么想法吗?