Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MVC routes
Message
From
30/09/2015 07:18:22
John Baird
Coatesville, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
MVC routes
Environment versions
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01625238
Message ID:
01625238
Views:
67
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.
Next
Reply
Map
View

Click here to load this message in the networking platform