[1406] Resharper incorrectly marking code as "Cannot resolve symbol"

This is for Resharper for Visual Studio 2010 Preview, build 5.0.1406.10.  I am working with the ASP.NET MVC web application, with a silverlight application (project created using the Silverlight Tools for Visual Studio).  The project was just generated and has no code changes.  The project is building fine.  However, Resharper for some reason is marking the ActionExecutingContext.HttpContext.User class as "Cannot resolve symbol 'User'.", as if a project reference is missing.  This is occurring in the AccountController.cs file, inside the OnActionExecuting method.  Here's the block of code causing the issue:

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (filterContext.HttpContext.User.Identity is WindowsIdentity)
            {
                throw new InvalidOperationException("Windows authentication is not supported.");
            }
        }

1 comment

I was having problems with the JIRA Issue Tracker earlier, but have since figured out the issue.  This message has been submitted in the JIRA Issue Tracker tool.

0

Please sign in to leave a comment.