Question

I've just created my first Preview 5 error and it doesn't seem to place nice with Resharper. All the C# in the Views are coming up with errors, things like <%= Html.Password("currentPassword") %> has the "currentPassword" highlighted with the following error: Argument type "System.String" is not assignable parameter type "string".

IList errors = ViewData["errors"] as IList; has the IList highlighted as "Can not resole symbol 'string'"

Has anyone seen this?

Was it helpful?

Solution

Did you try latest nightly build of ReSharper 4.1? In some cases the bug in 4.1 manifests itself with numerous ambiguity errors, and it has been fixed within the follow up build.

OTHER TIPS

If anyone finds this blog, the fix suggested above worked for me - I downloaded the latest 4.1 build, and the ambiguous reference problem is gone.

Sometimes this can occur when you don't fully qualify your Inherits attribute of your @Page directive. Even if it is in your web.config be sure and fully qualify your Inherits directive for R#. (At least as of build 4.1.943).

This bug has been reported here: http://www.jetbrains.net/jira/browse/RSRP-96241

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top