Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-274672: Undefined MVC.NET action reported in case of mapped URL

$
0
0
Reporter Petr Kuzel (pkuzel) 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 .

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>