question

tsalim13-2340 avatar image
0 Votes"
tsalim13-2340 asked BrandoZhang-MSFT commented

I cannot reach my asp.net core server hosted under iis in windows server 2016

I cannot reach my asp.net core 2.1 server hosted under iis in windows server 2016 but it work fine when i launch the .exe

my webhostbuilder function

when i send request to my api nothing happen

public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseSerilog()
.UseKestrel()
.UseUrls("http://*:3000")
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>();

dotnet-aspnet-core-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@tsalim13-2340 Could you please share more details information about which error you have faced when you send request to Web api? 404 or 500? Do you install the host bundle for asp.net core in IIS server?

0 Votes 0 ·

0 Answers