Problem:
Microsoft.WindowsAzure.Storage.StorageException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.
Solution:
1.Open Command Prompt as Administrator.
2.Go to C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\.
3. Run the following command "AzureStorageEmulator.exe start".