"'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'" Code Answer's

You're definitely familiar with the best coding language C# that developers use to develop their projects and they get all their queries like "'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'" answered properly. Developers are finding an appropriate answer about 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' related to the C# coding language. By visiting this online portal developers get answers concerning C# codes question like 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'. Enter your desired code related query in the search bar and get every piece of information about C# code related question on 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'. 

'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'

By MlifonzaMlifonza on Aug 26, 2020
In my case, I had an extra '/' on my Route query string.

LIKE:

[Route("get/liked//{id}")]
[HttpGet("[action]")]
public async dynamic GetLikedPost(int id)

INSTEAD OF:

[Route("get/liked/{id}")]
[HttpGet("[action]")]
public async dynamic GetLikedPost(int id)

Source: stackoverflow.com

Add Comment

0

All those coders who are working on the C# based application and are stuck on 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' can get a collection of related answers to their query. Programmers need to enter their query on 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' related to C# code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' for the programmers working on C# code while coding their module. Coders are also allowed to rectify already present answers of 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' while working on the C# language code. Developers can add up suggestions if they deem fit any other answer relating to "'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'". Visit this developer's friendly online web community, CodeProZone, and get your queries like 'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' resolved professionally and stay updated to the latest C# updates. 

C# answers related to "'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'"

View All C# queries

C# queries related to "'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate'"

'The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. Parameter name: routeTemplate' how to make a bool appear in all scripts unity tuple parameter name cannot initialize a by-value variable with a reference Uninstall-SPSolution: This solution contains resources scoped for a Web application and must be retracted from one or more Web applications. There is already an open DataReader associated with this Command which must be closed first. There is already an open DataReader associated with this Connection which must be closed first. asp net route attribute vs httpget create project from custom template dotnet dotnet new with template with namespace unity script template folder find first occurrence of character in string character stay in ground unity 3d change character velocity unity character control script unity unity everytime character shoot he has a short cooldown how to add force to character controller unity can't rename 2d character replace first occurrence of character in string c# C sharp character movement max occuring character in a string lexicographically count max occuring character in string python count max occuring character unity character movement script Vb.net substring after character unity check if animator has parameter grab reference from method parameter c# nunit return parameter asp.net get query string parameter optional parameter get request c# how to assign list int for method parameter in C# how to pass an optional parameter in c# mvc asp.net C# Custom setter with parameter unity 2d ontriggerenter2d same parameter error Bartender text file as parameter c# pass method as parameter String parameter too long.' c# the process cannot access the file because it is being used by another process. c# unity Type of conditional expression cannot be determined because there is no implicit conversion between 'Color' and '' Response.Redirect cannot be called in a Page callback cannot implicitly convert type 'system.threading.tasks.task string ' to 'string' c# the 'this' object cannot be used before all of its fields are assigned to "Control cannot fall out of switch from final case label ('default:') c# c# an object on upper level cannot be added to an object c# string to control name unity Couldn't acquire device ID for device name Built-in Microphone datetime month name c# namespace name form1 could not be found c# user name session unity find layer by name c# json serialization exception a memeber wi th name already exists unity create file name datetime wpf get name of clicked element how to give pdfcoument a name in c# compute shader.setfloat(string name, val) error More than one migrations configuration type was found in the assembly 'EFCodeFirst'. Specify the name of the one to use wpf find child control by name mvc form name json tiers dot in name c# c# error "The name 'ViewBag' does not exist in the current context" asp.net core user.identity.name is null what error code i should return in asp.net core whether user name or password are incorrect c# asp.net only displays name of property c# get class name as string cs0103 the name '' does not exist in the current context how to send button name for method in c# CS0103 C# The name 'Request.Url.Scheme' does not exist in the current context Error CS0246 The type or namespace name 'Form1' could not be found (are you missing a using directive or an assembly unity how to get y value linq get a dictionary key and value c# get random value from list c# c# switch case set value c# datagridview count value how to get integer value from textbox in c# c# reflection get property value array change z value unity c# delegate return value invoke c# get value of object in enum c# regex get capture value how get last array value in javascipt fill all array c# with same value c# storing value in session The Math.Max(x,y) method can be used to find the highest value of x and y The Math.Min(x,y) method can be used to find the lowest value of of x and y: c# hashtable get value by key c# convert to absolute value c# convert string to enum value The Math.Abs(x) method returns the absolute (positive) value of x: how to retrive an enum string value instead of number in c# controller how to change an int value c# nested value object c# wpf binding object get value c# get the return value of a func add css class based on model value razor getting the row of max value c# linq value is null to insert in c# unknown discriminator value mongodb reading dictionary key value using linq and storig into a variable c# button click gets assigned the last value unity how to find the smallest value out of 2 numbers c# get textbox line value by count c# absolute value The value '1990-10-23' is not valid for DOB. Data Annotation C# c# value types c# set datetime to null value increase value in dictionary against a key in c# how to lerp a value in unity c# dynamic object get value c# get regedit value urp set postprocessing value c# check if value in dictionary are unique absolute value python c# check list of objects for value set only one value in a vector 3 unity

Browse Other Code Languages

CodeProZone