Click here to Skip to main content
15,394,560 members

Slacker007 - Professional Profile



Summary

    Blog RSS
2,253
Authority
127,013
Debator
1,528
Editor
154
Enquirer
18,934
Organiser
9,072
Participant
0
Author
No Biography provided

 

Groups

Below is the list of groups in which the member is participating

Soap Box 1.0
United States United States
This _private_ forum is set up to be a place where political and social issues, including American politics and global warming, can be discussed in a reasonably civil manner. Anyone who has been an active member* of Code Project for six months is welcome to apply for membership but this forum does not tolerate trolling posts, or posters who wish to be disagreeable. Those who choose to become uncivil, insulting, or childish will be warned and, for repeated violations, removed from membership.

* That means that you have posted regularly or had at least one article published.

For member complaints and suggestions, contact the forum administrator at ...
cp[soapbox1[0 at gmail.com
Remove the [ characters and replace them by a period.
Group type: Social Group
This member has Member status in this group

194 members

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralDbEntityValidationException - Troubleshooting Pin
Slacker00714-Oct-17 1:17
professionalSlacker00714-Oct-17 1:17 
If you have ever received this error before, it is most likely due to you trying to insert/update a table where a field is required and you are not passing the required field any value.
Unfortunately, when you log this error, it does not specify the offending fields, nor is it mentioned in any way in the genera exception message. This is a known issues and it appears Microsoft has no plans to ever make it easier to see the offending entities, etc.

So, I use this temporary catch statement (dev purposes only) to identify what is going wrong. I use log4net, but you could write this out the console if needed, or use another logger, or just do debug print.

C#
catch (DbEntityValidationException dve)
{
    MyLogger.Error(dve.Message, dve);
    foreach (var eve in dve.EntityValidationErrors)
    {
        foreach (var ev in eve.ValidationErrors)
        {
            MyLogger.Info(ev.ErrorMessage + " " + ev.PropertyName);
        }
    }
}



Note: This type of error is rare and usually occurs when a mistake has been made at the table level for the required fields, or when someone else on the team has changed the column definitions on a table, and those changes conflict with the existing code base.
GeneralJSON and XML Viewer and utility apps (free - online) Pin
Slacker0074-Aug-17 10:32
professionalSlacker0074-Aug-17 10:32 
GeneralInteresting websites that can come in handy PinPopular
Slacker0079-Jun-11 6:24
professionalSlacker0079-Jun-11 6:24 
GeneralUtilities that get the job done [modified] PinPopular
Slacker00723-Nov-10 0:12
professionalSlacker00723-Nov-10 0:12 
GeneralRe: Utilities that get the job done Pin
thatraja15-Jan-11 20:42
professionalthatraja15-Jan-11 20:42 
GeneralRe: Utilities that get the job done Pin
Sandeep Mewara11-Feb-11 19:00
mveSandeep Mewara11-Feb-11 19:00 
GeneralRe: Utilities that get the job done Pin
Slacker00711-Feb-11 21:40
professionalSlacker00711-Feb-11 21:40 
GeneralRe: Utilities that get the job done Pin
Sandeep Mewara11-Feb-11 22:21
mveSandeep Mewara11-Feb-11 22:21 
GeneralRe: Utilities that get the job done Pin
ShilpiP16-Feb-11 19:58
MemberShilpiP16-Feb-11 19:58 
GeneralRe: Utilities that get the job done Pin
JP_Rocks26-Apr-11 22:59
MemberJP_Rocks26-Apr-11 22:59 
GeneralRe: Utilities that get the job done Pin
JP_Rocks26-Apr-11 22:58
MemberJP_Rocks26-Apr-11 22:58 
GeneralRe: Utilities that get the job done Pin
Slacker00727-Apr-11 0:41
professionalSlacker00727-Apr-11 0:41 
GeneralRe: Utilities that get the job done Pin
Gandalf_TheWhite27-Apr-11 22:16
professionalGandalf_TheWhite27-Apr-11 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.