ASP.NET Web Api - Startup.cs doesn't exist

后端 未结 5 713
广开言路
广开言路 2021-02-01 12:43

I have an ASP.NET Web Api solution which doesn\'t contain a Startup.cs class. I presume this is because the solution wasn\'t created as an MVC solution.

All the code for

5条回答
  •  滥情空心
    2021-02-01 13:30

    Yes. first you need to remove the following line from your web.config.

    
    

    Only then it will call the the method it startup.cs.

提交回复
热议问题