ASP.NET MVC WebAPI 404 error

前端 未结 8 1451
一生所求
一生所求 2020-12-13 23:31

I have an asp.net web forms application running under v4.0 integrated mode.

I tried to add an apicontroller in the App_Code folder.

In the Global.asax, I ad

8条回答
  •  既然无缘
    2020-12-14 00:18

    I tried all of the above and had the same problem. It turned out that the App pool created in IIS defaulted to .net 2.0. When I changed it to 4.0 then it worked again

提交回复
热议问题