Troubleshooting Identity Server 4
your problem can be anything. enable logging to the console and you can find out what it is. Identity Server 4 by default uses the asp.net core logger provider to do its internal logging.
in your Startup.cs
within the Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
method. Add Console logging by loggerFactory.AddConsole(LogLevel.Trace);
and make sure that you include the logger extension package in your project.json "Microsoft.Extensions.Logging.Console": "1.0.0",
.