Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@model does not exist in the current context
Message
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01595609
Message ID:
01595634
Vues:
47
>The title of this post is the error message I get when running a MVC view, my model declaration is
@model IEnumerable<Mytable>
but I get the dreaded red squiggle in design mode , I don't know if this is related but I've also lost intellisense in my views I get messages like "@Html Helper does not contain a method ActionLink" and also all calls to any "@Html helpers" are "red squigglies" , all this started when Nuget updated some libraries.
>
>Edit: I've attached a screenshot

Looks like all those come from the System.Web.MVC..namespace in System.Web.Mvc.dll so I'd check for that in the references. But you say 'when running' - does that mean you project compiles OK ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform