System.ServiceModel.CommunicationException: Could not connect to net.tcp://localhost:4503/AnalysisBLL.UserBLD. The connection attempt lasted for a time span of 00:00:00.0781250. TCP error code 10013: 试图以其访问权限所禁止的方式访问套接字。. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may need to contact the owner of the service to expose a sockets cross-domain policy over HTTP and host the service in the allowed sockets port range 4502-4534. ---> System.Net.Sockets.SocketException: 试图以其访问权限所禁止的方式访问套接字。
--- 内部异常堆栈跟踪的结尾 ---
位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
位于 SLApp.UserService.UserClient.UserClientChannel.EndSayHello(IAsyncResult result)
位于 SLApp.UserService.UserClient.SLApp.UserService.IUser.EndSayHello(IAsyncResult result)
位于 SLApp.UserService.UserClient.OnEndSayHello(IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
郁闷啊,一天时间了,还没搞定,不知道什么问题。代码应该没问题……