我们的应用程序从 Windows Server 2012 迁移到 Windows Server 2019 标准。我们的应用服务器和 IIS 服务器都已迁移。
我们在应用程序中使用 Signal R 2.2.0 版。当我尝试使用信号 R URL 获取数据时,出现未经授权的错误 401。
我做了调试,发现当我们调用时它失败并显示消息
connection.start()
堆栈跟踪:(出于安全目的,我用服务器名称替换了服务器详细信息)
at Object.error (https://serverName/scripts/vendor.js?v=1.11.10820:72734:25)
at g (https://serverName/scripts/vendor.js?v=1.11.10820:72879:41)
at Object.error (https://serverName/scripts/vendor.js?v=1.11.10820:72886:47)
at i (https://serverName/scripts/vendor.js?v=1.11.10820:1410:30)
at Object.fireWith [as rejectWith] (https://serverName/scripts/vendor.js?v=1.11.10820:1455:101)
at z (https://serverName/scripts/vendor.js?v=1.11.10820:3691:619)
at XMLHttpRequest.<anonymous> (https://serverName/scripts/vendor.js?v=1.11.10820:3865:229)
我按照这个 link 在我的应用程序服务器和 IIS 服务器中安装了 websocket 协议,重新启动了服务器和服务。
我观察了 ASP.Net 版本的差异。
只需要Asp.Net 4.5吗?