Method not found: 'System.Web.Http.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'

0

I upgraded Windows and suddenly this error happen. My project still uses Visual Studio 2010 and ASP.NET MVC 4 Beta.

I tried to re-install ASP.NET MVC 4 Beta but the problem still remains.

Could any body help to solve this problem? Thank you very much.

Server Error in '/Park.Web' Application. Method not found: 'System.Web.Http.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'. 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.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'.

Source Error:

Line 86: // This one is for capturing the SOAP request in Fiddler Line 87: ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }); Line 88: } Line 89: Line 90: public static void RegisterGlobalFilters(GlobalFilterCollection filters)

Source File: G:\Works\dotNet\Park\trunk\dev\src\Park.Web\Global.asax.cs Line: 88

Stack Trace:

[MissingMethodException: Method not found: 'System.Web.Http.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'.] Park.Web.MvcApplication.Application_Start() in G:\Works\dotNet\Park\trunk\dev\src\Park.Web\Global.asax.cs:88

[HttpException (0x80004005): Method not found: 'System.Web.Http.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Method not found: 'System.Web.Http.Filters.GlobalFilterCollection System.Web.Http.HttpConfiguration.get_Filters()'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3752.0

asp.net-mvc
asp.net-mvc-4
asked on Stack Overflow Jun 13, 2019 by Agile Hobo

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0