Reporter | Petr Kuzel (pkuzel) |
---|---|
Created | Aug 3, 2011 1:30:43 PM |
Updated | Oct 6, 2011 8:44:51 PM |
Priority | Normal |
Type | Feature |
Fix versions | Mirabile Futurum |
State | Submitted |
Assignee | Ilya Ryzhenkov (orangy) |
Subsystem | Code Analysis |
Affected versions | 6.0 |
Fixed in build | No Fixed in build |
At C# controller I have
return RedirectToAction("SampleDetails");
for which the R# reports error: Cannot resolve action 'SampleDetails' .
However the runtime is able to resolve the action because there is a dynamically registered route in Global.asax.vb at Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) which is updating RouteTable.Routes:
routes.MapRoute("SampleDetails", "Ordering/SampleDetails", _ New With {.controller = "Sample", .action = "SampleDetails"})
It's tough problem, so the first step could be just to update the message to match the performed check: Cannot resolve action 'SampleDetails' using static MVC.NET conventions .
return RedirectToAction("SampleDetails");
for which the R# reports error: Cannot resolve action 'SampleDetails' .
However the runtime is able to resolve the action because there is a dynamically registered route in Global.asax.vb at Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) which is updating RouteTable.Routes:
routes.MapRoute("SampleDetails", "Ordering/SampleDetails", _ New With {.controller = "Sample", .action = "SampleDetails"})
It's tough problem, so the first step could be just to update the message to match the performed check: Cannot resolve action 'SampleDetails' using static MVC.NET conventions .