Last post Apr 27, 2012 05:30 AM by cbae
Mar 27, 2012 04:43 PM|wjvii|LINK
I have VS 11 Beta installed on Windows 7 and fire up VS 11, select Single Page Application, run Install-Package SinglePageApplication to get the latest and greatest, follow the instructions here:
http://www.asp.net/single-page-application/getting-started-with-spa/spa-walkthroughs/walkthrough-getting-started-with-spa to add the Tasks controller, hit run and get the following: Failed to get the MetadataWorkspace for the DbContext. So I edit the global.asax
to comment out the Database.DefaultConnectionFactory line and update to EF 4.3.1 using Install-Package EntityFramework. Now when I run again I am greeted with: Microsoft JScript runtime error: 'ko' is undefined, this is due to an incorrect reference in the
_SpaLayout.cshtml which is referencing knockout-2.0.0.js. I edit it to be just knockout.js and run it again when I am greeted by: self.editingTodoItem = editorDataSource.getFirstEntity(); and so I do a search for the getFirstEntity and cannot find it.
Is it possible the default project is missing a reference or has an incorrect file in the default setup for a SPA application in VS 11 with the latest NuGet packaged installed (was updated yesterday it says)?
Thank you advance for any input.
Mar 30, 2012 12:48 PM|broomy|LINK
Mar 30, 2012 08:34 PM|Jessie Tremble|LINK
Follow these instructions to the letter.
That'll sort it out.
Apr 05, 2012 11:17 AM|Curelom|LINK
That seems to only sort it out if you are starting with a mvc 4 project. How do I sort it out if I have upgraded a mvc 3 project to mvc 4?
Apr 27, 2012 05:30 AM|cbae|LINK
Anybody? Anybody? Bueller?
Both recent updates to Upshot and Knockout were very minor 0.0.0.1 revisions too. I can't believe such a huge breaking change was made without any information about it anywhere. Does Upshot have a project repository anywhere that's accessible to the public?