如果你的應用中使用了OWIN,那么需要在主項目(一般來說是指Web項目)中添加Abp.Owin的nuget包,然后像下面那樣在OWIN的 Startup文件中調用 UseAbp()擴展方法:
[assembly: OwinStartup(typeof(Startup))]
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseAbp();
//your other configuration...
}
}