chandana
chandana

Reputation: 11

Method not found: 'System.Web.Http.Controllers.ServicesContainer

Am trying to register routes using webAPI in VS2012. At GlobalConfiguration.Configuration.Routes it is throwing the below error. Can someone help me with this?


Server Error in '/' Application.
Method not found: 'System.Web.Http.Controllers.ServicesContainer  
System.Web.Http.HttpConfiguration.get_Services()'.
Description: An unhandled exception occurred during the execution of the current web request.    
Please review the stack trace for more information about the error and where it originated in  the code.

Exception Details: System.MissingMethodException: Method not found: 'System.Web.Http.Controllers.ServicesContainer System.Web.Http.HttpConfiguration.get_Services()'.

Source Error:

An unhandled exception was generated during the execution of the current web request.    
Information regarding the origin and location of the exception can be identified using the       
 exception stack trace below.

Upvotes: 1

Views: 2196

Answers (1)

mstaffeld
mstaffeld

Reputation: 1335

Sounds like you need the System.Web.Http.Common.dll assembly.

Upvotes: 1

Related Questions