當我嘗試訪問託管在Azure上的網站時,出現以下錯誤。 即時通訊使用數據庫的connectionString從數據庫管理面板上Azure的直接複製,但coudlnt連接成功無法連接到Azure SQL服務器,錯誤:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
任何想法如何真正解決呢?感謝
您是否在基於IaaS的SQL服務器或託管的SQL Azure數據庫上使用此功能?如果是前者,確保你已經打開了適當的端口,如果後者是你設置了基於IP的訪問規則? – BrentDaCodeMonkey