Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MVC routes
Message
De
30/09/2015 07:18:22
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
MVC routes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01625238
Message ID:
01625238
Vues:
70
We have a situation where we have a virtual directory in IIS pointing to c:\websites\sysadminweb. We want to place version directories below this folder like:

sysadminweb
v2.4.0
v2.4.1
v2.5.0

The trouble we're having is that if we place the deployed files in the version folder, the routing tables in MVC can't find the Home\index and nothing happens. If we deploy the files to the root directory, all works well.

What kind of routing map do we set up so that we can pass the version and have the mvc routing find it?


Thanks in advance, but figure it out: url: "v2.4.0/{controller}/{action}/{id}" does the trick.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform