简体   繁体   English

尝试连接到Azure中的SQL Server时在signalR ASP.NET中出现错误

[英]Error when in signalR ASP.NET when trying to connect to SQL server in Azure

I am trying to connect signalR to an SQL server in azure. 我正在尝试将signalR以天蓝色连接到SQL Server。

[PlatformNotSupportedException: The SQL Server edition of the target server is unsupported, eg SQL Azure.] [PlatformNotSupportedException:不支持目标服务器的SQL Server版本,例如SQL Azure。

After follow the instructions on Microsoft Documentation: 按照Microsoft文档上的说明进行操作之后:

https://docs.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-with-sql-server https://docs.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-with-sql-server

Service Broker is enabled. Service Broker已启用。

Form MSDN article: 表格MSDN文章:

Prerequisites 先决条件

Microsoft SQL Server 2005 or later. Microsoft SQL Server 2005或更高版本。 The backplane supports both desktop and server editions of SQL Server. 背板同时支持SQL Server的桌面版和服务器版。 It does not support SQL Server Compact Edition or Azure SQL Database . 它不支持SQL Server Compact Edition或Azure SQL数据库 (If your application is hosted on Azure, consider the Service Bus backplane instead.) (如果您的应用程序托管在Azure上,请考虑使用Service Bus背板。)

If your application will be hosted in Azure and you're using ASP.NET Core, you should consider the use of the Azure SignalR Service as an alternative which offers first class integration with Azure Services including SQL Azure. 如果您的应用程序将托管在Azure中并且使用的是ASP.NET Core,则应考虑使用Azure SignalR服务作为替代方法,该服务提供与包括SQL Azure在内的Azure服务的一流集成。

https://azure.microsoft.com/en-us/blog/azure-signalr-service-a-fully-managed-service-to-add-real-time-functionality/ https://azure.microsoft.com/en-us/blog/azure-signalr-service-a-fully-managed-service-to-add-real-time-functionality/

Here's a quickstart: 这是一个快速入门:

https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-dotnet-core https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-dotnet-core

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM