InvalidOperationException: Cannot determine the ‘href’ attribute for .

An unhandled exception occurred while processing the request.

InvalidOperationException: Cannot determine the 'href' attribute for <a>. The following attributes are mutually exclusive:
asp-route
asp-controller, asp-action
asp-page, asp-page-handler

Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper.Process(TagHelperContext context, TagHelperOutput output)

请检查路由是否正确asp-route-id如果写成asp-route=""这样的路由是错误的,必须加上-键名="值"

声明:本站内容来源于原创和互联网,尊重作者版权,转载请注明来源网址,欢迎收藏,谢谢!