C # ASP.NET MVC 4 Web API XmlDocumentationProvider error

When working with a Web API template in an ASP.NET MVC 4 project, trying to compile, I get this error:

'Solution.Web.Api.Areas.HelpPage.XmlDocumentationProvider' does not implement a member of the 'System.Web.Http.Description.IDocumentationProvider.GetResponseDocumentation (System.Web.Http.Controllers.HttpActionDescriptor)' interface

The class does not seem to implement all the interface methods. However, I have not yet generated any code or applied any code change to the default project.

Do you know what causes this problem?

+7
c # asp.net-web-api asp.net-mvc-4
source share
5 answers

Mark the answer for updating the web API help page for me. Here are the commands that I ran to make this happen:

In Visual Studio 2013:

  • TOOLS → Library Package Manager → Package Manager Console
  • Paste the following into the package manager console:

Update-Package Microsoft.AspNet.WebApi.HelpPage

  • Press Enter, cross your fingers and send alternative solutions if you find them!
+16
source share

The error is located somewhere in the Api HelpPage webpage. This is just a nuget package that will install the / Area / Help stuff. I assume it should be updated?

Try what happens if you uninstall Microsoft.AspNet.WebApi.HelpPage and reinstall it. The note; if after removing the package the files /Area/Help/** not deleted, delete them manually, they will be returned after reinstallation.

+3
source share

Make sure the controller inherits from ApiController, not just the controller.

+2
source share

I have the same problem when getting Microsoft.AspNet.WebApi.

In the Nuget package manager console, write this:

Update-Package -ProjectName 'YourProjectNameGoesHere' -Reinstall This will update all your packages and this will solve your problem. I hope this helps

0
source share

Compare the versions of your packages and install the help version with the preliminary version:

Microsoft.AspNet.WebApi.HelpPage -Pre Installation Package

Hope this helps.

0
source share

All Articles