Content Item url is http://www.mysite.com/us/signup which gives the error as mentioned below,
Error message
No url for remote validation could be found.
Validation attribute is on the property in the model is
[Remote("IsStoreExists", "Stores", AdditionalFields = "StoreId", ErrorMessageResourceName = "StoreAlreadyExists", ErrorMessageResourceType = typeof(Resources.Stores._CreateOrEdit))]
public string StoreName { get; set; }
I have tried the mvcbridge's tweak as mentioned here Calling Actions on a Controller via URL using MVCBridge (not the package but the idea regarding adding new route for the controller). Please note I have overriden the HttpApplication
in this Umbraco 6.0 Application as public class MvcApplication : UmbracoApplication
which invokes the RouteConfig class as below..
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
RouteTable.Routes.MapRoute(
"Stores", // Route name call it anything you want
"Stores/{action}/{id}", // URL with parameters,
new { controller = "Stores", action = "IsStoreExists", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
It seems it is making effect as the when I comment out the custom route named Stores
the blank page comes due to Blank Template in View
in Umbraco but when I uncomment route Stores
it shows 404 at url http://www.mysite.com/us/stores/
Pls help.