Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obtain System.Web.Http.Tracing.dll?

I read about Web API having its own TraceWriter implementation with 2012.2, for example here, among other sources.

I am now using VS2013 with .NET 4.5.1 and the EnableSystemDiagnosticsTracing is nowhere to be found. It's meant to be defined in the HttpConfigurationTracingExtensions class which resides in the System.Web.Http.Tracing.dll. However, this assembly is nowhere to be found - not in list of assemblies in the Add Reference dialog, not in GAC.

Where is this assembly supposed to come from? Docs say it's part of .NET Framework 4, which I have installed. Also installed the ASP.NET Web API 2 Tracing 5.0.0 NuGet package. Is there some update? Should I re-install .NET Framework?

I know it's not a big deal to implement ITraceWriter myself but it bothers me not to know what happened with the built-in implementation.

like image 484
Vroomfundel Avatar asked Nov 19 '13 12:11

Vroomfundel


1 Answers

Just install needed NuGet Package

Install-Package Microsoft.AspNet.WebApi.Tracing -Version 5.0.0

It's a little bit strange, but it is the right package

http://www.nuget.org/packages/microsoft.aspnet.webapi.tracing

like image 52
Regfor Avatar answered Sep 28 '22 01:09

Regfor