I posted it yesterday ...
https://stackoverflow.com/questions/32615769/owin-webapi-odata-v4-aspnet-identity-initialisation
If I changed the first line of the launch configuration method to ...
var config = GlobalConfiguration.Configuration ?? new HttpConfiguration();
Then I get this error when navigating to the root ...
The 'DelegatingHandler' list is not valid because the 'InnerHandler' 'CorsMessageHandler' property is not zero. Parameter Name: Handlers
I found some information stating that the base implementation of "HttpServer" had a batch download error in it, and that Microsoft stated that they had introduced a new batch processing platform, so we wonβt fix it, the blogs offered by this sample code to fix the error ...
public class BatchServer : HttpServer
{
private readonly HttpConfiguration _config;
public BatchServer(HttpConfiguration configuration)
: base(configuration)
{
_config = configuration;
}
protected override void Initialize()
{
var firstInPipeline = _config.MessageHandlers.FirstOrDefault();
if (firstInPipeline != null && firstInPipeline.InnerHandler != null)
{
InnerHandler = firstInPipeline;
}
else
{
base.Initialize();
}
}
}
-, , , .
, , , .