5
votes

After a deploy to our Azure Web App, we are getting 500 timeouts on any request to the service:

500 - The request timed out.

The web server failed to respond within the specified time.

I have enabled logging in web.config and the logs are showing no exceptions or anything wierd on startup. Only this in stdout_abdce_2016wxyz.log:

Hosting environment: Development Content root path: D:\home\site\wwwroot Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. stdouts

Thing is I have loads of logs with the same contents. every 3minutes (approx) There seems to be a new one generated.

Running AspNet Core RTM (after doing an upgrade from RC1. web.config I took from the aspnet/IIS repository on github. The project runs and functions fine locally on my development PC

1
Did you configure your app to listen on port 5000?David Makogon
Yeah my program.cs (entry point) .UseUrls("http://localhost:5000") I have some RC2 projects with a similar WebHostBuilder that work fine in Azure. Is it that UseUrls() extension?Lutando
I believe that's your issue. Answer coming.David Makogon
Are you registering the IIS/:ASP.NET Core Module middleware? .UseIISIntegration() in Program.cs and "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",`` in your project.json's dependencies/tools sections? Check the MusicStore Samples on github github.com/aspnet/MusicStore/blob/1.0.0/src/…Tseng

1 Answers

2
votes

Since you're trying to hook into port 5000, I'm pretty sure this is your issue. Azure Web Apps only support ports 80 and 443.

I believe you'll be able to read the port value to use, from the environment.