我正確無誤地從WebJob訪問Azure上承載的SQL Server數據庫嗎?Azure WebJobs和Azure SQL Server?
我越來越:
Unhandled Exception: System.Data.SqlClient.SqlException: 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
我想我需要使用Azure Table中存儲,而不是,可以EF代碼先用表存儲使用嗎?或者應該這樣工作?
該Web應用程序正在本地運行,並且只在Web作業項目無法連接。
我正在使用默認設置在Azure中創建的新創建的基本層計劃SQL數據庫,因爲Web應用程序可以訪問它,所以我沒有向防火牆添加任何內容。
你可以用更多的細節來編輯你的問題,例如連接字符串(當然減去實際的憑證),你是在虛擬機或SQL數據庫服務中使用SQL Server,是否在SQL數據庫服務上打開防火牆(或虛擬機)等 –