Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upgrading to the latest MVC causes error
Message
 
 
À
24/02/2015 08:47:25
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01615733
Message ID:
01615788
Vues:
19
>>>The actual routing table is created dynamically at startup and it seems that this can't be constructed if the ErrorView() (or other) methods are generic.
>>>What's your signature of ErrorView() ?
>>>
>>
>>I posted it in another reply but here it's again:
>>
>>
public PartialViewResult ErrorView<T>(T viewModel, string viewName, string message, string errorProperty = "") where T : BaseEditViewModel
>
>Could you just use:
>
public PartialViewResult ErrorView(BaseViewModel viewModel, string viewName, string message, string errorProperty = "")
>
>
I made that change and it seems to be working.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform