Path [*] not found in ASP.NET MVC 2 when using custom routes

We're developing a site using VSTS 2010 Beta 2 and ASP.NET MVC 2.  After upgrading from ReSharper 5 Beta to 5.0.1605.77 I noticed a new error indicated in some ASPXs.  In several places we're using jQuery to do AJAX calls to the controllers.  One of the conventions we've used to do this is to setup a custom route in the global.asax that calls into a specific controller and action.  This custom route does not map to any physical file but relies on the mapping in the RegisterRoutes method to map to a controller and action.  Within the ASPXs we have Url.Content("~/CustomAction/") to reference the established custom route.  ReSharper 5.1.1605.77 flags this as an error saying that the "Path C:\projects\ProjectName\CustomRoute not found".  Since this is a custom action and not a physical path this error is misleading.  Is it possible to turn this error off or to suppress it?

Thanks,
Matt

2 comments
Comment actions Permalink

Matt Garing wrote:

We're developing a site using VSTS 2010 Beta 2 and ASP.NET MVC 2.  After upgrading from ReSharper 5 Beta to 5.0.1605.77 I noticed a new error indicated in some ASPXs.  In several places we're using jQuery to do AJAX calls to the controllers.  One of the conventions we've used to do this is to setup a custom route in the global.asax that calls into a specific controller and action.  This custom route does not map to any physical file but relies on the mapping in the RegisterRoutes method to map to a controller and action.  Within the ASPXs we have Url.Content("~/CustomAction/") to reference the established custom route.  ReSharper 5.1.1605.77 flags this as an error saying that the "Path C:\projects\ProjectName\CustomRoute not found".  Since this is a custom action and not a physical path this error is misleading.  Is it possible to turn this error off or to suppress it?


Hi Matt!
Should be fixed in build 1614.

0
Comment actions Permalink

Thanks.  I tried 1614 and no longer received the notification.

0

Please sign in to leave a comment.