The SPA library was originally released as part of one of the betas of MVC4. It was not shipped as part of RTM and from what I have seen/heard it's either not ready for RTM or won't ever be continued. So it was more of a sample. Anyway, looks like the version
you have it compiled against an old beta of MVC and thus you shouldn't use it.
Microsoft released an update a few months ago with a new SPA template. The HttpControllerConfigurationAttribute has been removed and replaced with the
IControllerConfiguration interface. You have to implement it yourself. You can find examples here:
DownUnderDev
Member
15 Points
11 Posts
HttpControllerConfigurationAttribute missing MVC4 / SPA
Oct 09, 2012 06:16 AM|LINK
create new MVC4 App... using Nuget install package SinglePageApplication (or just AspNetWebApi.Data) compile run.
when you try and call an ApiController method or a DbDataController method you are given the error message
missing System.Web.Http.Controllers.HttpControllerConfigurationAttribute' from assembly 'System.Web.Http'
What is the deal here? found it has been removed in this version but has anyone got a work around for this?
BrockAllen
All-Star
28052 Points
4996 Posts
MVP
Re: HttpControllerConfigurationAttribute missing MVC4 / SPA
Oct 09, 2012 01:33 PM|LINK
The SPA library was originally released as part of one of the betas of MVC4. It was not shipped as part of RTM and from what I have seen/heard it's either not ready for RTM or won't ever be continued. So it was more of a sample. Anyway, looks like the version you have it compiled against an old beta of MVC and thus you shouldn't use it.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
DownUnderDev
Member
15 Points
11 Posts
Re: HttpControllerConfigurationAttribute missing MVC4 / SPA
Oct 09, 2012 08:40 PM|LINK
That seem weird as there is a whole section (http://www.asp.net/single-page-application) based on this ??
Why would they promote it so predominatly if is is not going to be continued (cough silverlight 2.0 cough)
BrockAllen
All-Star
28052 Points
4996 Posts
MVP
Re: HttpControllerConfigurationAttribute missing MVC4 / SPA
Oct 09, 2012 08:57 PM|LINK
Yea, not sure. I think it's more a function of time and not that they don't want to "do" something in this space.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
panesofglass
Participant
758 Points
242 Posts
Re: HttpControllerConfigurationAttribute missing MVC4 / SPA
Jan 21, 2013 12:25 PM|LINK
Microsoft released an update a few months ago with a new SPA template. The HttpControllerConfigurationAttribute has been removed and replaced with the IControllerConfiguration interface. You have to implement it yourself. You can find examples here: