Cannot resolve action MVC 5

I have сontroller with method 

public async Task<IActionResult> LoadMetalAsync(IFormFile xlsx)

And I try to get action URL on View with help of 

@Url.Action( "LoadMetalAsync", "ControllerName")

I get an error: cannot resolve action. But this method exist. And then if I change ActionName to "LoadMetal" - all it's okay.

@Url.Action( "LoadMetal", "ControllerName")

But I don't have any LoadMetal function on any controller in project.  

Rider 2022.3

1
1 comment

Hello Kealstex, thank you for your question. Do you have a chance to send us a sample solution where we can reproduce the issue? I would like to compare that what I see is the same problem that you have. You can upload the solution to JB server via https://uploads.jetbrains.com/ form. Thanks in advance!

0

Please sign in to leave a comment.