OWIN Startup Class Missing

前端 未结 19 1191
攒了一身酷
攒了一身酷 2020-11-29 15:40

I\'m getting this error as my project is not able to find the reference for OWIN startup class. I\'ve even installed all the OWIN reference packages through Nug

19条回答
  •  执笔经年
    2020-11-29 16:18

    I had this problem, understand this isn't what was wrong in the OP's case, but in my case I did have a Startup class, it just wasn't finding it by default.

    My problem was the I had spaces in my Assembly Name, and hence the default namespace was different from assembly name, hence the namespace for the startup class was different than the assembly name.

    As the error suggests, by convention it looks for [Assembly Name].Startup for the class... so be sure the namespace for your Startup class is the same as the Assembly name. Fixed the problem for me.

提交回复
热议问题