The type or namespace name 'PizzaModel' does not exist in the namespace 'RazorPagesPizza.Pages' (are you missing an assembly reference?) [RazorPagesPizza]

Niranjan Wagh 21 Reputation points
2022-05-23T00:36:28.84+00:00

204456-error.jpg

I have been following along this documentation

https://learn.microsoft.com/en-us/learn/modules/create-razor-pages-aspnet-core/5-exercise-create-new-razor-page-and-form

I didn't even change the any variable name still getting this error

Also I did not change any code either.

I am simply copy pasting it from documentation.

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2022-05-23T01:27:00.02+00:00

    Hi @Niranjan Wagh ,

    Check the namespace, there has a spelling mistake (double 'z'): RazorPagesPizza and RazzorPagesPizza. Try to change it.

    204471-204456-error.jpg


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.