i get below problem when i run my mvc project ,i try to connect client.BaseAddress in located at another project ,please help me,i trying lot of time to solve this issue. but i don't get satisfy solution.
Server Error in '/' Application.
No connection could be made because the target machine actively refused it 120.0.0.2:2222
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
Line 287: client.BaseAddress = new Uri(System.Configuration.ConfigurationManager.AppSettings["dfg"].ToString()); Line 288: Line 289: HttpResponseMessage response = await client.PostAsync("abc/xyz", content); Line 290: if (response.IsSuccessStatusCode) Line 291: {