Creating a new Razor Pages project in .net 6
Whenever I create a new Razor Pages project in .net 6 I get the notification in the screenshot. I have no idea what I am doing wrong or which files I have to send.
21 Replies
Can you show your project layout in the solution explorer?
You're getting a 404, which means the server is listening; but it can't find an index page to show the data at the root level of your site.
Also the .net console output from when you run your app
expand pages
Can you show $code for Index.cshtml
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/I was following this tutorial: https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start?view=aspnetcore-6.0&tabs=visual-studio
Tutorial: Get started with Razor Pages in ASP.NET Core
This is the first tutorial of a series that teaches the basics of building an ASP.NET Core Razor Pages web app.
I couldn't even run it on "Run the app"
Is that the one under movies or at the root?
under movies
I think that should be /movies then
this is the other one
in your browser
it gives the same result
hmmmm
let me try and create a new one
It's going to take me a few more hours before I can try to repro
I created a new razor pages, and I"m not able to replicate your issues. Is this in a public repo somewhere?
There is not one project that wants to run
I have no idea why
I follow the class example
build error
I updated my Visual Code and now it works for whatever reason
Great, only wasted 1,5 days on it