16,004,927 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ynettep (Top 6 by date)
ynettep
10-Jun-17 23:08pm
View
MVC framework. "SessionName" is declared in the Sessions model, but .IsChecked is declared in TeachersRegistrationModel
ynettep
20-Jun-16 10:24am
View
Thank you for your help.
ynettep
20-Jun-16 10:22am
View
Thank you for your feedback and assistance.
ynettep
13-Jun-16 13:30pm
View
return infos.Where(x => x.Username == infoName).FirstOrDefault();
I added it at the end and I'm no longer receiving the error message, but if model state is false it's not returning my error message for invalid info. I moved .FirstOrDefault to where you suggested and my error message still does not display. The page just reloads when submit..
Thank you for your help..
ynettep
13-Jun-16 9:57am
View
Invalid Operation Exception was unhandled by user code.
(Sequence contains no elements)
When I login with credentials the are true no issue, but when I enter invalid credentials to test that's when I get the error.
ynettep
13-Jun-16 9:56am
View
return infos.Where(x => x.Username == infoName).First(); error @.FIRST
Invalid Operation Exception was unhandled by user code.
(Sequence contains no elements)
When I login with credentials the are true no issue, but when I enter invalid credentials to test that's when I get the error.
Show More