1

VS2012 で webAPI を使用してルートを登録しようとしています。GlobalConfiguration.Configuration.Routes で、以下のエラーがスローされます。誰かがこれで私を助けることができますか?


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.
4

1 に答える 1

1

System.Web.Http.Common.dll アセンブリが必要なようです。

于 2012-12-28T13:56:08.563 に答える