Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
82
stars
11
forks
source link
System.Net.Sockets.SocketException on outbound HTTP calls #332
I'm playing around with service fabric mesh and wanted to make a basic http call in a console app that I created using the VS template for service fabric mesh:
var client = new HttpClient();
client.GetAsync("https://www.google.com").GetAwaiter().GetResult();
However this produces:
System.Net.Sockets.SocketException : 'The requested service provider could not be loaded or initialized'
What do I have to chance in order to make it work? Unfortunately I couldn't find any documentation about outbound connections in service fabric mesh.
Update:
I found out that the outbound connections work the first time I start my cluster after restarting windows. But on the second start I get the exception above. I assume either receiving the exception or not receiving it on the first start is sort of a bug. Also using ping www.google.com I am able to make outbound calls from within the docker container that service fabric mesh created and started for me
Hi,
I'm playing around with service fabric mesh and wanted to make a basic http call in a console app that I created using the VS template for service fabric mesh:
However this produces: System.Net.Sockets.SocketException : 'The requested service provider could not be loaded or initialized'
My network.yaml looks as follows:
What do I have to chance in order to make it work? Unfortunately I couldn't find any documentation about outbound connections in service fabric mesh.
Update: I found out that the outbound connections work the first time I start my cluster after restarting windows. But on the second start I get the exception above. I assume either receiving the exception or not receiving it on the first start is sort of a bug. Also using
ping www.google.com
I am able to make outbound calls from within the docker container that service fabric mesh created and started for meKind regards Peter