На моем IIS Express все работает нормально, но в работе я получаю сообщение об ошибке. Как я могу решить эту проблему?
Метод не найден:
«System.Collections.ObjectModel.Collection 1<System.Net.Http.DelegatingHandler>
System.Web.Http.HttpConfiguration.get_MessageHandlers()'.<br>
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.<br>
Exception Details: System.MissingMethodException: Method not found:
'System.Collections.ObjectModel.Collection
1
System.Web.Http.HttpConfiguration.get_MessageHandlers ()». Источник
Ошибка: необработанное исключение было сгенерировано во время выполнения
текущий веб-запрос. Информация о происхождении и местонахождении
исключения можно определить с помощью трассировки стека исключений
ниже. Трассировка стека: [MissingMethodException: метод не найден:
«System.Collections.ObjectModel.Collection 1<System.Net.Http.DelegatingHandler>
System.Web.Http.HttpConfiguration.get_MessageHandlers()'.]<br>
CDW.WebApiConfig.Register(HttpConfiguration config) in
L:\W\App_Start\WebApiConfig.cs:25<br>
System.Web.Http.GlobalConfiguration.Configure(Action
1
конфигурация обратного вызова) + 46
CDW.WebApiApplication.Application_Start () в L: \ W \ Global.asax.cs: 17
[HttpException (0x80004005): метод не найден:
«System.Collections.ObjectModel.Collection 1<System.Net.Http.DelegatingHandler>
System.Web.Http.HttpConfiguration.get_MessageHandlers()'.]<br>
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
context, HttpApplication app) +517<br>
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context, MethodInfo[] handlers) +185<br>
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168<br>
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +277<br>
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +369 [HttpException (0x80004005): Method not found:
'System.Collections.ObjectModel.Collection
1
System.Web.Http.HttpConfiguration.get_MessageHandlers ()».]
System.Web.HttpRuntime.FirstRequestInit (контекст HttpContext) + 532
System.Web.HttpRuntime.EnsureFirstRequestInit (контекст HttpContext)
+111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerRequest
wr, контекст HttpContext) + 714
Информация о версии: