Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

HttpConfiguration assembly reference error

$
0
0

We developed Asp.net MVC application using .net 4.5 in VS2012 then later We decided to recompile in .net 4.0 by changing Target framework in project properties. Now we are getting error like

"Error 1036 The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) " in WebApiConfig.cs file.

System.Web.Http.dll is (default) referenced from "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Web.Http.dll" and ''HttpConfiguration" class is appears in blue color, I mean it resolves (see below attached image) when we goto definiation but throws error.

Please share your suggestions to fix this issue.Thanks


Viewing all articles
Browse latest Browse all 21115

Trending Articles