B
BenjaminD.public.name
Guest
I am using a VS 2019 Tutorial at
Add a model to a Razor Pages app in ASP.NET Core
There are slight differences in the tutorial and the actual results. The most glaring is that "RazorPagesMovie/Pages" is called Views but in the Scaffolding step the new pages are placed in a newly created Pages folder.
The Initial Migration step uses the Package Manager Console but in both "Add-Migration InitialCreate" and "Update Database" the error "The specified deps.json [C:\Users\….\source\repos\RazorPagesMovie\RazorPagesMovie.deps.json] does not exist" occurs although the Build succeeded. Note that the expected "No type was specified..." warning did NOT occur (although that error supposedly can be ignored.)
The next step is to run the app and append /Movies to the URL - This produces a 404 error
It would seem that the above views/Pages discrepancy has put the Movies folder in the wrong place
Continue reading...
Add a model to a Razor Pages app in ASP.NET Core
There are slight differences in the tutorial and the actual results. The most glaring is that "RazorPagesMovie/Pages" is called Views but in the Scaffolding step the new pages are placed in a newly created Pages folder.
The Initial Migration step uses the Package Manager Console but in both "Add-Migration InitialCreate" and "Update Database" the error "The specified deps.json [C:\Users\….\source\repos\RazorPagesMovie\RazorPagesMovie.deps.json] does not exist" occurs although the Build succeeded. Note that the expected "No type was specified..." warning did NOT occur (although that error supposedly can be ignored.)
The next step is to run the app and append /Movies to the URL - This produces a 404 error
It would seem that the above views/Pages discrepancy has put the Movies folder in the wrong place
Continue reading...