Vs2015 Hilights errors, but...

2 posts, 0 answers
  1. Joe
    Joe avatar
    220 posts
    Member since:
    May 2012

    Posted 01 Feb 2017 Link to this post

    I have a grid that is suddenly showing errors in VS2015, but the code compiles and runs exactly as expected.  I've included a screenshot...  The error isn't all that helpful really, saying the data type cannot be inferred... Could someone tell me what I can do to resolve these errors?  Again, they're not really errors since the grid runs as expected when the app is deployed.

    The class the grid is using:

    public class UploadedDocument
        {
            public UploadedDocument();
     
            public string CaseId { get; set; }
            public string ClientId { get; set; }
            public string DocketNumber { get; set; }
            public int DocumentSource { get; set; }
            public virtual DocumentSource DocumentSource1 { get; set; }
            public string EmployeeId { get; set; }
            public string FirstName { get; set; }
            public int Id { get; set; }
            public string LastName { get; set; }
            public bool Matched { get; set; }
            public string Name { get; set; }
            public DateTime OrderDate { get; set; }
            public string SSN { get; set; }
            public string Type { get; set; }
            public DateTime UploadDate { get; set; }
        }

     

    I'm not using any data annotations because the class in question is a generated POCO. The other odd thing is that these weren't highlighting as errors earlier in the day...  Since it compiles, I guess it's not a big deal, but I'm wary of them...

  2. Joe
    Joe avatar
    220 posts
    Member since:
    May 2012

    Posted 01 Feb 2017 Link to this post

    I hate it when this happens... I post a question, and magically the answer pops into my head.  I still don;t know the actual cause, but I cleared it up by rebuilding the reference with my POCO definitions and built a new NuGet package, then updated that in my app, and suddenly, no more highlighted errors...
Back to Top