Posts

Showing posts from December, 2018

My first time experience: C#/ Asp.net.core

Image
I am planning of deploy my API to my server and error happen. My source: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace johnTestBO     public class Program     {         public static void Main(string[] args)         {             CreateWebHostBuilder(args).Build().Run();         }         public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>             WebHost.CreateDefaultBuilder(args)             //Open to loop back localhost             //  .UseKestrel(options =>             // {             //    options.Listen(IPAddress.Loopback, 5001);                    .UseStartup ();             // })     } } ``` The error after I run it in ssh and visual. ``` Exception has occurred: CLR/System.Net.Sockets.SocketException An unha