The route template separator character '/' cannot appear consecutively - Attribute routing issue

前端 未结 4 1869
长情又很酷
长情又很酷 2021-02-05 01:04

The configuration has nothing to do with the error

This is my configuration for the Web API in App_Start/WebApiConfig.cs:

public static void Register(H         


        
4条回答
  •  囚心锁ツ
    2021-02-05 01:29

    I've got the same error with two (or more) slashes.

    [Route("marketdata//tickerinfo")]
    

    It's easy to happen when you change the string.

提交回复
热议问题