ASP.NET MVC on IIS 7.5

前端 未结 28 1981
北荒
北荒 2020-11-22 11:33

I\'m running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it. <

28条回答
  •  囚心锁ツ
    2020-11-22 12:25

    Yet another reason this can happen - your RouteConfig.cs or WebApiConfig.cs are invalid.

    In my case, I had a route defined as such (note the parenthesis instead of curly brace):

    ...
    routeTemplate: "api/(something}"
    ...
    

提交回复
热议问题