Server Error in '/' Application.

A route named 'National-Cancer-Links' is already in the route collection. Route names must be unique.
Parameter name: name

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: A route named 'National-Cancer-Links' is already in the route collection. Route names must be unique.
Parameter name: name

Source Error:


Line 26:                 routes.MapPageRoute(vRow["SEO_Friendly_URL"].ToString(), (vRow["Parent_SEO_Friendly_URL"]!= System.DBNull.Value?vRow["Parent_SEO_Friendly_URL"].ToString()+"/":"")+vRow["SEO_Friendly_URL"].ToString(), (vRow["Menu_Link_URL"].ToString().Contains("~/")?vRow["Menu_Link_URL"].ToString():"~/"+vRow["Menu_Link_URL"].ToString()));
Line 27:             else if(vRow["Menu_Type"].ToString() == "CO")
Line 28:                 routes.MapPageRoute(vRow["SEO_Friendly_URL"].ToString(), (vRow["Parent_SEO_Friendly_URL"]!= System.DBNull.Value?vRow["Parent_SEO_Friendly_URL"].ToString()+"/":"")+vRow["SEO_Friendly_URL"].ToString(), "~/Content.aspx");
Line 29:         }
Line 30: 

Source File: d:\inetpub\vhosts\oncologyindia.org\httpdocs\Global.asax    Line: 28

Stack Trace:


[ArgumentException: A route named 'National-Cancer-Links' is already in the route collection. Route names must be unique.
Parameter name: name]
   System.Web.Routing.RouteCollection.Add(String name, RouteBase item) +3287901
   System.Web.Routing.RouteCollection.MapPageRoute(String routeName, String routeUrl, String physicalFile, Boolean checkPhysicalUrlAccess, RouteValueDictionary defaults, RouteValueDictionary constraints, RouteValueDictionary dataTokens) +154
   System.Web.Routing.RouteCollection.MapPageRoute(String routeName, String routeUrl, String physicalFile) +24
   ASP.global_asax.RegisterRoutes(RouteCollection routes, Object sender) in d:\inetpub\vhosts\oncologyindia.org\httpdocs\Global.asax:28
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\inetpub\vhosts\oncologyindia.org\httpdocs\Global.asax:76
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10082212
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +165
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1126
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +297
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0