Looking for a lot of data, found that no one can answer,
Have a great god know how to solve?
Sequences contain more than one element
Note: during the execution of the current Web request, an unhandled exception, please check the stack trace, to learn about the errors and mistakes in the code of the source of detailed information,
Exception details: System. InvalidOperationException: sequences contain more than one element
The error source:
During the execution of the current Web request generated an unhandled exception, you can use the exception stack trace below to determine the reason and the location of the abnormal information,
The stack trace:
[InvalidOperationException: sequences contain more than one element]
System. Data. Linq. SqlClient. SqlProvider. Execute (Expression query, QueryInfo QueryInfo, IObjectReaderFactory factory, Object [] parentArgs, Object [] userArgs, ICompiledSubQuery [] subQueries, Object lastResult) + 2189
System. Data. Linq. SqlClient. SqlProvider. ExecuteAll (Expression query, QueryInfo [] queryInfos, IObjectReaderFactory factory, Object [] userArguments, ICompiledSubQuery [] subQueries) + 207
System. Data. Linq. SqlClient. SqlProvider. System. Data.. Linq Provider. IProvider. Execute (Expression query) + 576
System. Data. Linq. DataQuery ` 1 System. Linq. IQueryProvider. Execute (Expression Expression) + 46
System. Linq. Queryable. SingleOrDefault (IQueryable ` 1 source) + 352
KXK. Service. HwSerivce. GetUpByAuthor (Int32 HwID, String Author) in C: \ Users \ Administrator \ Desktop \ KXK \ KXK Service \ Hw \ HwSerivce cs: 22
KXK, Controllers. HomeWorkController. SendHw (String HwID) in C: \ Users \ \ Administrator \ Desktop \ KXK \ KXK \ Controllers \ HomeWorkController cs: 571
Lambda_method (ExecutionScope ControllerBase, Object []) + 69
System. Web. Mvc. ReflectedActionDescriptor. Execute (ControllerContext ControllerContext, IDictionary ` 2 parameters) + 236
System. Web. Mvc. ControllerActionInvoker. InvokeActionMethod (ControllerContext ControllerContext, ActionDescriptor ActionDescriptor, IDictionary ` 2 parameters) + 31
System. Web. Mvc. & lt;> C__DisplayClassa. & lt; InvokeActionMethodWithFilters> B__7 () + 85
System. Web. Mvc. ControllerActionInvoker. InvokeActionMethodFilter (IActionFilter filter, ActionExecutingContext preContext, Func ` continuation) 1 + 235491
System. Web. Mvc. ControllerActionInvoker. InvokeActionMethodWithFilters (ControllerContext ControllerContext, IList ` 1 filters, ActionDescriptor ActionDescriptor, IDictionary ` 2 parameters) + 288
System. Web. Mvc. ControllerActionInvoker. InvokeAction (ControllerContext ControllerContext, String actionName) + 235670
System. Web. Mvc. Controller. ExecuteCore () + 174
System. Web. Mvc. MvcHandler. The ProcessRequest (HttpContextBase httpContext) + 209
System. Web. CallHandlerExecutionStep. System. Web. HttpApplication. IExecutionStep. The Execute () + 599
System. Web. HttpApplication. ExecuteStep (IExecutionStep step, Boolean& CompletedSynchronously) + 171
CodePudding user response:
This question is difficult to?CodePudding user response:
Gibberish, coding problem isThe head part of check aspx or CSHTML file, charset="GB2312"