I am getting the following error on production server.It works well on localhost.
Error: Sequence contains more than one element
I am getting the following error on production server.It works well on localhost.
Error: Sequence contains more than one element
That is an InvalidOperationException thrown by the Single method.
This method is supposed to return only one element, and your query is returning more than one, you have to check the criteria you use on your query.
It will also throw an exception if it doesn't find an element.