the name configureauth does not exist

后端 未结 1 883
庸人自扰
庸人自扰 2021-01-19 03:58

i\'m trying this tutorial http://httpjunkie.com/2013/311/adding-mvc-5-identity-to-an-existing-project/ but is shows me an error Error 5 The name \'ConfigureAuth\' does

1条回答
  •  滥情空心
    2021-01-19 04:25

    You have different namespaces in both files: namespace TicketSystem.App_Start and namespace TicketSystem. Make sure they are the same. Or alternatively add using statement: using TicketSystem.App_Start in your startup.cs class. If you check the example you'll see that both files are using the same namespace (namespace MVC5FullApp)

    0 讨论(0)
提交回复
热议问题