none
Razor View - ASP.Net Core MVC The type or namespace cannot be found ... RRS feed

  • Question

  • VisualStudio.15.Release/15.9.19+28307.1000
    Microsoft .NET Framework
    Version 4.8.03761

    I am starting a new ASP.Net Core Web application project. I am quite familiar with the steps to do so.  However all of a sudden the C# model class is not recognized by the Razor view and I get the old the "type or namespace cannot be found you are missing a using directive or assembly reference" message. There does not seem to be anything wrong with the model class as I can instantiate objects of the class in the HomeController.  Razor views cannot see the C# model class.  I deleted the solution and tried it again with the same result, did an update for Visual Studio 2017 and still no improvement. Can someone suggest what I need to do to get running again?

    Thanks

    Monday, February 10, 2020 9:44 PM

Answers

All replies

  • Core and Razor pages can be discussed at the ASP.NET forums.

    http://forums.asp.net/

    I would help you, but I am jsut now watching Razor pages course on Pluralsight. Actally,  it's kind of boring so far. :)

    Monday, February 10, 2020 10:26 PM
  • Thanks for the reply.  I will try to post over on forum.ASP.Net
    • Marked as answer by Geol4549 Monday, February 10, 2020 11:46 PM
    Monday, February 10, 2020 11:46 PM