Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upgrading to the latest MVC causes error
Message
De
24/02/2015 03:51:28
 
 
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:
01615759
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>>>Maybe I'm barking up the wrong tree but isn't that your own code (in 'SysManager.Web.Areas.AccountingAudit.Controllers.PaymentTypesController)
>>>
>>>That controller is the first one in the areas (e.g. areas start with AccountingAudit area and this is the first controller there).
>>>
>>>The error happens before the Index method of that controller is hit (as I have a breakpoint here).
>>
>>The stack trace shows that the exception is thrown at start up by SysManager.Web.RouteConfig.RegisterRoutes()
>>And the method causing the problem is the ErrorView () not Index()
>>
>>
>>>Also, does it matter that we're running in Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237 ?
>>
>>Don't know :-{
>
>I am not sure what can I do to fix this error. I've tried debugging it, but it breaks right away without going to the constructor of the BaseController or PaymentTypesController.

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 can, of course, try to change the target .NET framework to be 4.5, don't think it will help.
>
>I've checked few projects in the solution and it says that it's targeting .NET 4.5.1. So why it's showing 4.0 version of the framework?

Showing where ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform