You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ASP.NET WebForms应用Azure SignalR自定义域名WebSocket传输故障求助

问题:Azure SignalR自定义域名下WebSocket传输认证失败

我在包含SignalR Hub的ASP.NET WebForms应用中使用Azure SignalR服务的自定义域名时遇到问题,已完成Azure SignalR服务的自定义域名配置。

  • 当使用以下连接字符串时,一切正常,可正常使用WebSocket传输:

    "Endpoint=https://example_endpoint;AccessKey=example_accesskey;Version=1.0;"
    
  • 但添加ClientEndpoint指定自定义域名后,使用如下连接字符串:

    "Endpoint=https://example_endpoint;AccessKey=example_accesskey;ClientEndpoint=custom_domain_endpoint;Version=1.0;"
    

    出现**"HTTP Authentication failed; no valid credentials available"**错误,传输方式自动切换为SSE。

请问需在服务端或客户端做哪些配置,才能使用自定义域名实现SignalR的WebSocket传输?

内容的提问来源于stack exchange,提问作者Toom

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 22:45:32