IUrlHelper ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than

Posted mingjing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IUrlHelper ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than相关的知识,希望对你有一定的参考价值。

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

技术图片

2.1 IUrlHelper.Link没问题   2.2  就会报错,2.2需要改成Url.Link

 

以上是关于IUrlHelper ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than的主要内容,如果未能解决你的问题,请参考以下文章

重新整理 .net core 实践篇—————路由和终结点[二十三]