0

I have wrote a ASP.NEt Core 3.21 web app and found out GoDaddy only supports 2.0. I changed the target to this and found it's no long supported so I changed it back but now any reference to the Model in my views is erroring: -

The name Model does not exist in the current context.

Any help please,

jps
  • 20,041
  • 15
  • 75
  • 79
  • Sorry it was 3.1 – user1633508 Jul 23 '21 at 10:42
  • Have you refactored the project, will he report an error? Or you can refer to this article, which may be helpful to you.https://stackoverflow.com/questions/43499009/the-name-model-does-not-exist-in-current-context-in-asp-net-core – Tupac Jul 26 '21 at 08:03
  • Sorry not sure what you mean by refactored the project. When I changed the default target framework to 2.0 and then back I get errors referencing any to do with the @ symbol. – user1633508 Jul 26 '21 at 09:15
  • I;ve even added a new project and get the same result. Any help please... – user1633508 Jul 26 '21 at 17:07

0 Answers0