Web API - Error Method not Found ‘System.Web.WebPages.IDisplayMode System.Web.Mvc.ControllerContext.get_DisplayMode()’

I got this error while using web api development . After lots of effort i got the solution for following error.

Error Method not Found ‘System.Web.WebPages.IDisplayMode System.Web.Mvc.ControllerContext.get_DisplayMode()’


Solution of above error is just deleted the following DLL from reference folder and restart the VS Solution and everything started working Normally.

"Microsoft.Web.Mvc.FixedDisplayModes.dll"

Or remove Unused  DLLs  from Reference Folder of your web api or asp.net mvc project


Comments

Popular Posts