我有一些測試,它在sqllocaldb實例上運行。我也在同一臺PC上安裝了Teamcity CI服務器(不要問我爲什麼)。但是當我從TeamCity運行測試時,我收到此錯誤Teamcity和localdb
OneTimeSetUp: 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: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
在VS中運行測試是正常的。 TeamCity無法看到這個localDB的東西是什麼原因?
TeamCity是否作爲「服務」運行?服務是以「本地系統」,「網絡服務」還是某個實用程序帳戶運行? – tgolisch
TeamCIty作爲服務運行,「本地系統」,默認設置,仍然找到了一些解決方法 –