How can I start a container on a docker installed on remote server?
I tested .WithDockerEndpoint("tcp://165.12.3.15:9563") but the following error is occuring:
System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
public IntegrationTestFactory()
{
MsSqlTestcontainer testContainer = new TestcontainersBuilder<MsSqlTestcontainer>()
.WithDatabase(new MsSqlTestcontainerConfiguration
{
Password = "localdevpassword#123"
})
.WithDockerEndpoint("tcp://165.12.3.15:9563")
.WithImage("mcr.microsoft.com/mssql/server")
.WithCleanUp(true)
.Build();
testContainer.StartAsync();
}
Related
I have created Telegram bot via webhook and ngrok. It works when launching inside VS. But when I have published to local IIS, request to site ends with "500 HTTP ERROR" and system events viewer shows that exception occurred when calling IHost.Run() method.
Description: The process was terminated due to an unhandled exception.
Exception info:
System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
...
at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest`1 request, CancellationToken cancellationToken)
...
at TemperatureBot.Program.Main(String[] args) in C:\Users\administrator\source\repos\TemperatureBot\TemperatureBot\Program.cs:line 14
On Run() method one of hosted services performs this:
botClient.SetWebhookAsync(hook);
Internet is accessed through corporative proxy.
Why it works well in VS debug but blunders on IIS?
Changed default publishing directory (/bin/Release/netcoreapp3.1/publish) to custom, and everything works
I am trying to connect to MySQL AWS RDS using following simple C# code.
string cs = #"server=swift-test.czjkayncnfz9.us-east-2.rds.amazonaws.com;port=3306;userid=*****;password=*****;database=swift-db";
var con = new MySqlConnection(cs);
con.Open();
But I get the following exception
"Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time
, or established connection failed because connected host has failed to respond."
The screenshots of my Inbound & Outbound rules are attached.
Do you have any EC2 instance in this setup?
If yes, then try referencing that security group in your inbound rules with the type as MySql/Aurora.
I have to connect RabbitMQ Server from localhost. Application is built in c#.
I did following settings for connect RabbitMQ
var cf = new ConnectionFactory();
cf.Uri = new Uri("amqps://user:pass#172.20.0.72:5671/vhost");
cf.Ssl.Enabled = true;
cf.Ssl.ServerName = System.Net.Dns.GetHostName();
cf.Ssl.CertPath = #"D:\Vishal_Yagnik\DeskTop_25092018\Certi\test.p12";
cf.Ssl.CertPassphrase = "test";
var connection = cf.CreateConnection();
But I am getting following error.
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Is that possible to connect RabbitMQ server from localhost. Also install cert file in local machine.
I trying to connect to Sphinx Windows Service localhost. I have installed the service and it is running, I have built an index correctly and I am using a .net Sphinx Client to try and connect: https://code.google.com/p/sphinx-dotnet-client/
ConnectionBase _connection;
_connection = new PersistentTcpConnection("localhost", 9312);
try
{
_connection.Open();
var command = new SearchCommand(_connection, new SearchQuery("garcia"));
command.Execute();
}
finally
{
_connection.Close();
}
I am getting the error:
"An existing connection was forcibly closed by the remote host"
This is the default port for Sphinx according to there documentation:
http://sphinxsearch.com/docs/current.html#quick-tour
I am at a loss on how to debug this and what step to take next.
I write the following code in my project.
TcpClient tcp = new TcpClient();
tcp.Connect("chat.facebook.com", 5222);
When I run my project,I got the following error.
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 69.171.227.26:5222
Anybody advice me?
Are you sure there's no firewall in place between you and chat.facebook.com which is blocking your outbound access on port 5222?
For example, I just did this:
$ telnet chat.facebook.com 5222
Trying 66.220.151.99...
Connected to chat.facebook.com.
Escape character is '^]'.
so it's fine for me