Now let me tell you the possible factors that cause this 404 in ASP.NET applications. The first one is pretty much simple and easy to understand,
the file or directory does not exist on your server. I don't think this one needs any more clarification.
Secondly, since you're talking about ASP.NET MVC, you should make sure that Url Routing is also enabled. Url routing lets you create logical mapping with some controllers on your website, to allow custom URLs; the URLs that do not map to an absolute path on your server. So, either change the URL you're trying to use, or create a new Controller and name it as
XYZAuthentication
. Inside your RoutineConfig file, register this routine,
route.MapRoute(
name: "XYZAuthentication Route",
url: "{controller}/{action}",
new { controller: "XYZAuthentication", action: "register"}
);
This way, you can map your URL to an actual Controller and an Action in your ASP.NET MVC application. Now it won't throw 404, instead it would load the resources (probably the data inside your Action function) inside your View. For more on ASP.NET's MVC framework, please read
this article[
^] of mine.