Could not load file or assembly 'System.Web.Http.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
public class SchoolController : DbDataController<SchoolContext>
{
public IQueryable<Institute> GetInstitutes()
{
return DbContext.Institues.OrderBy(x => x.ID);
}
public void InsertInstitute(Institute institue)
{
InsertInstitute(institue);
}
}
nssidhu100
Member
24 Points
28 Posts
SPA - file not found : System.Web.Http.Common
Jun 29, 2012 06:02 PM|LINK
I am running into the following error.
I am using latest VS2012 RC & SPA(from Nuget)
Browsing using "http://localhost:1954/api/school"
Could not load file or assembly 'System.Web.Http.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
public class SchoolController : DbDataController<SchoolContext>
{
public IQueryable<Institute> GetInstitutes()
{
return DbContext.Institues.OrderBy(x => x.ID);
}
public void InsertInstitute(Institute institue)
{
InsertInstitute(institue);
}
}
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: SPA - file not found : System.Web.Http.Common
Jun 29, 2012 06:22 PM|LINK
was the installing success, this is new NameSpace added just trying adding Reference to this dll
right clicking on the Project and select add reference and search this "System.Web.Http.Common.dll" then click add
nssidhu100
Member
24 Points
28 Posts
Re: SPA - file not found : System.Web.Http.Common
Jun 29, 2012 06:29 PM|LINK
Nuget install didn't give me any error.
I can't seem to locate that dll under packages.
What are the remification, from where can i get the dll ?
PeteK68
Member
4 Points
2 Posts
Re: SPA - file not found : System.Web.Http.Common
Jul 04, 2012 03:52 AM|LINK
I am also getting the same error.
It would be nice to get this SPA working... even though it seems to be out of sync with the rest of the RCs that are out.
nizam.mcts
Member
116 Points
38 Posts
Re: SPA - file not found : System.Web.Http.Common
Jul 04, 2012 07:06 AM|LINK
use this link to add System.Web.Http.Common.dll
nuget.org/packages/System.Web.Http.Common
bklooste
Member
34 Points
12 Posts
Re: SPA - file not found : System.Web.Http.Common
Jul 09, 2012 04:02 PM|LINK
See other threads its a major piece of work to get it working , which will probably all be wasted when it is released,,
So options are
1) Use Preview nor RC
2) Use Ria services back end and upshot javascript on the client ( it talks to Ria Domains)
Ben