Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Web.Http.Description is missing from Add Reference List

I am getting an error:

Error   1   The type or namespace name 'Description' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?) c:\users\klippiat\documents\visual studio 2010\Projects\TfsPortal\TfsPortal\Models\ApiModel.cs  5   23  TfsPortal

I would normally Add Reference and select the missing reference. But System.Web.Http.Description is missing from the list. I have sorted the list by name to make sure that I should be able to see it. I can see System.Web.Http.Data and .Common etc. but not the .Description one.

What am I doing wrong?

like image 503
Dewiniaeth Avatar asked Sep 04 '12 21:09

Dewiniaeth


People also ask

How do I add System Web?

1 right click on References in Solution Explorer and press add reference... 2 choose the browse tab and go to C:\Windows\assembly\GAC_32\System. Web\System. Web.


1 Answers

Visual Studio 2012 SPA Template /Help/index.cshtml file was throwing your error.

@using System.Web.Http
@using System.Web.Http.Description  <=== CS0234: The type or namespace name 'Description' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)

Solution: Set "Copy Local : True" in properties for References\System.Web.Http

like image 140
StevoKeano Avatar answered Nov 11 '22 05:11

StevoKeano