Last post Jun 19, 2019 09:45 AM by Mikesdotnetting
Jun 19, 2019 07:17 AM|michale.p|LINK
I was trying to add a razor page named as 'Add&EditPerson'. but i was given an error 'The name is invalid because it is a reserved name'. but i couldn't find any reference from the library named as this name. So what are
the references for this name or how can i find out reserved names as a list ?
Jun 19, 2019 07:38 AMfirstname.lastname@example.org|LINK
Don't waste your time with this!
Simply change your logic in naming your files and avoid names you think it is reserved as happened with me while I was naming some class with the name 'Case' and I changed it to 'Cases' simply!
Don't use letters like '&' in your files' names.
Jun 19, 2019 07:43 AM|PatriceSc|LINK
It is likely caused by the & character (as & have its own meaning in urls).
Jun 19, 2019 07:56 AM|Mikesdotnetting|LINK
I can't seem to generate that error message. Obviously, VS stops you creating a file with an & sign in the name, but provides a different warning. But there's nothing to stop you calling the file AddEditPerson.cshtml, and then applying an override route
to the page:
Jun 19, 2019 09:45 AM|Mikesdotnetting|LINK
how can i find out reserved names as a list ?