Windows services 在窗口服务中使用信号器

Windows services 在窗口服务中使用信号器,windows-services,signalr,Windows Services,Signalr,我使用信号器通过窗口服务向客户端浏览器广播消息 It only works on <http://localhost> <HubConnection("http://localhost/signalr")> Change to <http://www.xyz.com> will get an error message: "One or more errors occurred". <HubConnection("http://xyz.com/sign

我使用信号器通过窗口服务向客户端浏览器广播消息

It only works on <http://localhost>
<HubConnection("http://localhost/signalr")>

Change to <http://www.xyz.com> will get an error message: "One or more errors occurred".
<HubConnection("http://xyz.com/signalr")>

是否需要任何设置或附加库才能使其工作?

您不需要任何附加组件,毕竟它已在本地工作

当与远程信号器资源的连接未成功时,将返回“发生一个或多个错误”错误


您可以使用和来解决此类问题

请添加完整的堆栈跟踪。