C# Sql Connection can not connect to server
I'm trying to connect SQL server in my virtual machine with following connection string: "Server=qqvm;Database=a_test;Integrated Security=False;User Id=sa;Password=<pass>;Connect Timeout=0" Firstly I had 'Network connection' exception with inner 'Access Denied' exception with empty stack trace. I did some digging and enabled 'Named Pipes' in SQL Configuration Manager. After that I got this exception: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=11281; handshake=1; However, I'm still able to connect via SQL Management Studio to that server remotely. Any ideas?
Finally in my case specifying IP address instead of qqvm name solved the problem. Still don't know why, though. It worked a week ago.
Object reference not set to an instance of an object in Page declaration
KendoGrid not populating but it should be
Unit Test that involves some UI element
MongoDB, trying to import json which has been serialized using TypeNameHandling.Objects
Checkbox state not changed on postback
Disable Android double tap on Xamarin Forms Label
Access generic type of requested service for parameter construction
.NET Core and .NET Framework interaction
How do I set an MSpec test as inconclusive?
Clickonce exe won't run on my Windows 10 PC
Convert a hex string (byte list) to a byte array
Avoid returning type Task<Object> from an async function when using HttpClient
Is there a better way of writing the following Linq-query
Reading registry value crashes
Move camera along 2 axes in WorldSpace
Is possible to use Cortana for in-app voice commands?