public void Configuration(IAppBuilder app)
{
// code is executed
}
public void ConfigureServices(IServiceCollection services)
{
// code is not executed
}
public void Configuration(IAppBuilder app)
{
// code is executed
}
public void ConfigureServices(IServiceCollection services)
{
// code is not executed
}
3
Answers
ConfigureServices(IServiceCollection services) method is only available in ASP.NET Core.
this might help- ASP.NET Classic OWIN StartUp ConfigureServices not called
Based on OWIN Startup Class Detection, you have to add the NuGet package
Microsoft.Owin.Host.SystemWeb
and then reference a OWIN Startup class from VisualStudio template, then in the following code you can access OWIN:Use this