Difference between WebApiConfig.cs and RouteConfig.cs

The following are the key differences:

  1. RouteConfig.cs is exclusively for configuring ASP.NET routes.
  2. WebApiConfig.cs is for any Web API related configuration, including Web-API-specific routes, Web API services, and other Web API settings.

As cmotley mentions, the ASP.NET web site includes a good listing of what types of configuration can be done in WebApiConfig.cs in this article.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)