Код: Выделить всё
public async void StartServer()
{
try
{
httpListener = new HttpListener();
httpListener.Prefixes.Add("http://102.172.45.123:1222/");
httpListener.Start();
}
catch (Exception ex)
{
Console.WriteLine("Error in connection: " + ex.Message);
}
}
System.Net.HttpListenerException: 'Процесс не может получить доступ к файлу, поскольку он используется другой процесс'
Подробнее здесь: https://stackoverflow.com/questions/786 ... -websocket