none
Sequence contains no element RRS feed

  • Question

  • I am getting sequence contains no element error when this statement is hit: CurrentContext.All<Resource>(), this was working previously and my backend database view does have multiple records. Any help would be appreciated.

    Thanks.

    Tuesday, November 26, 2019 2:31 PM

Answers

All replies

  • Hi Raj Krish,
    >>CurrentContext.All<Resource>()
    You can put a breakpoint on that line and check if the return value is null.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, November 27, 2019 7:20 AM
  • Updating NuGet packages resolved the issue!
    • Marked as answer by Raj Krish Wednesday, November 27, 2019 8:06 AM
    Wednesday, November 27, 2019 8:06 AM