Giter Site home page Giter Site logo

Comments (9)

JeffGilbertCodes avatar JeffGilbertCodes commented on August 12, 2024

I was following the instructions: here and had the same problem. Use the HOL/AspNetApiSpa/README.html instead.

from webcamptrainingkit.

GregTrevellick avatar GregTrevellick commented on August 12, 2024

*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.

GregTrevellick avatar GregTrevellick commented on August 12, 2024

*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.

GregTrevellick avatar GregTrevellick commented on August 12, 2024

*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.

JeffGilbertCodes avatar JeffGilbertCodes commented on August 12, 2024

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.

CarbonEdge avatar CarbonEdge commented on August 12, 2024

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.

ethanfischer avatar ethanfischer commented on August 12, 2024

I have the same issue

from webcamptrainingkit.

bisch050 avatar bisch050 commented on August 12, 2024

Also cannot find TriviaDatabaseInitializer.cs.
Has anybody be able to acquire this file or be able to share its content?

from webcamptrainingkit.

chinwaikeat avatar chinwaikeat commented on August 12, 2024

https://github.com/nzthiago/nzazure/tree/master/build-single-page-app-with-webapi-and-angular/end/GeekQuiz/GeekQuiz/Models

Here is the source that i found

from webcamptrainingkit.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.