Comments (9)
I was following the instructions: here and had the same problem. Use the HOL/AspNetApiSpa/README.html instead.
from webcamptrainingkit.
*A pull request has been submitted to address the issue below in the student instructions
Within HOL/AspNetApiSpa/README.html, at task 2, item 5, it says to add three using statements:
using GeekQuiz.Models;
using Microsoft.AspNet.Authorization;
using Microsoft.Data.Entity;
However, I believe a fourth using statement is required:
using Microsoft.AspNet.Mvc;
This additional using statement exists in the TriviaController class located at \HOL\AspNetApiSpa\Source\Ex1-CreatingAnAPI\End\src\GeekQuiz\Controllers\TriviaController.cs
from webcamptrainingkit.
*A pull request has been submitted to address the issue below in the student instructions
In addition to my previous comment, TriviaController.cs will also require the following 'usings' for task 2, item 7:
using System.Linq;
using System.Threading.Tasks;
from webcamptrainingkit.
*A pull request has been submitted to address the issue below in the student instructions
If, within HOL/AspNetApiSpa/README.html, at “Exercise 2: Creating the SPA Interface” > “Task 1 - Creating the SPA Interface Using AngularJS 2” > You elect to NOT open the GeekQuiz.sln solution located in the Source/Ex2-CreatingASPAInterface/Begin folder, and instead continue with the solution that you obtained in the previous exercise, the following may occur:
You may see the following javascript error in your browser’s dev tools when running the site:
GET http://localhost:55753/js/app.js 404 (Not Found)
If this is the case you will need to do the following:
Add a file called “app.js” within the wwwroot\js\ folder
Populate the content of that file with the content of the file \HOL\AspNetApiSpa\Source\Ex2-CreatingASPAInterface\End\src\GeekQuiz\wwwroot\js\app.js
from webcamptrainingkit.
Thanks! I'll check that out.
On Wed, Mar 2, 2016 at 11:02 AM, Gmaniacuk1 [email protected]
wrote:
If, within HOL/AspNetApiSpa/README.html, at “Exercise 2: Creating the SPA
Interface” > “Task 1 - Creating the SPA Interface Using AngularJS 2” > You
elect to NOT open the GeekQuiz.sln solution located in the
Source/Ex2-CreatingASPAInterface/Begin folder, and instead continue with
the solution that you obtained in the previous exercise, the following may
occur:You may see the following javascript error in your browser’s dev tools
when running the site:
GET http://localhost:55753/js/app.js 404 (Not Found)If this is the case you will need to do the following:
Add a file called “app.js” within the wwwroot\js\ folder
Populate the content of that file with the content of the file
\HOL\AspNetApiSpa\Source\Ex2-CreatingASPAInterface\End\src\GeekQuiz\wwwroot\js\app.js—
Reply to this email directly or view it on GitHub
#8 (comment)
.
Jeff Gilbert
(404) 219-9188
[email protected]
Resume https://goo.gl/8bhn82
from webcamptrainingkit.
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
System.Data.Entity.Database.SetInitializer(new TriviaDatabaseInitializer());
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
This is the code on the tutorial, but there is no TriviaDatabaseInitializer file anywhere.
I'm quite confused as to what to do next. I can't be the only one
from webcamptrainingkit.
I have the same issue
from webcamptrainingkit.
Also cannot find TriviaDatabaseInitializer.cs.
Has anybody be able to acquire this file or be able to share its content?
from webcamptrainingkit.
Here is the source that i found
from webcamptrainingkit.
Related Issues (11)
- Use Visual Studio Code instead of full Visual Studio 20xx for Web Development HOT 4
- ASP.NET In Production deck should recommend Redis Cache HOT 1
- GeekQuiz ... No DNX | Server-side option for Add New WebAPI Controller
- 'Data' does not exist in the namespace 'Microsoft' HOT 4
- Links to Legacy Sessions HOT 4
- coverage of VS 2017, VS code and on Prem deployment HOT 1
- French version ?
- Can this be updated to .net core 2.0
- Scaffolding item not visible in Visual Studio 2015 after installing ASP.NET 5 RC HOT 1
- Visual Studio Web Tools demo and lab currently don't work with ASP.NET 5 RC1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcamptrainingkit.