I have a working application in MVC.net which I am trying to migrate Azure environment.
Code to create virtual path to access controller is:
var populateEmailsUrl = '<%= Url.Action("PopulateEmailNotifications","ABC") %>';
where ABC
is the controller name and PopulateEmailNotifications
is the method name.
When accessed from any environment or localhost Azure it is rendered correctly as:
var populateEmailsUrl = '/appgroup/0021a/web/ABC/PopulateEmailNotifications/';
When accessed from azure public URL it is rendered as:
var populateEmailsUrl = '/appgroup/0021a/web/XYZ/PopulateEmailNotifications/';
XYZ
is another controller in application
This is not true with all the controllers. Some of them are rendered correctly.
Moved my application from MVC 2 to MVC 3 and it solved my problem.