Both files have different namespaces: namespace TicketSystem.App_Start and namespace TicketSystem . Make sure they are the same. Or, alternatively, add a using: using TicketSystem.App_Start in your startup.cs class. If you check the example, you will see that both files use the same namespace ( namespace MVC5FullApp )
Milen source share