Click here to Skip to main content
15,891,184 members

Comments by David_Wimbley (Top 200 by date)

David_Wimbley 30-Mar-20 19:43pm View    
You need to provide a stack trace, without it no one here is going to be able to help you. None of us have access to your code, hard drive, source control nor can we see your screen or access your app. My guess is your error is in your GetListof2020LoadPass method on your BL_Report class.

Add a try catch to your controller action, log the exception and provide what the stack trace outputs if you would like more meaningful help.
David_Wimbley 6-Dec-19 13:20pm View    
Use xpath to target specific id. Given test.com is your site...add an ID to the div with no ID.
David_Wimbley 12-Nov-19 2:46am View    
First or default has nothing to do with how a method works or available return values.

A method must have a return value regardless of its value. Your IF statement is preventing any values being returned if codename.Any() is false. If its true, you have a return value.

Based on your comment it seems you need to get rid of your if statement and just return FirstOrDefault as the .Any() check is redundant.

Ex: Change
if (codename.Any())
return codename.FirstOrDefault();

To just

return codename.FirstOrDefault();

That should accomplish what you seem to be indicating you need. Regardless of any contents within the codename List, it will return first or default (in this case null if the list is empty).
David_Wimbley 10-Jun-19 16:21pm View    
Looks like the issue lies with your LDAP server, not your code. Need to take a look at your server or work with your sys admin.
David_Wimbley 7-Jun-19 23:39pm View    
You have a relationship between Table A and Table C but no relationship from Table A to table B.

Therefore your attempt to "tableB is where each record is created" is useless as there is no foreign key to any other table defined.

You either need a foreign key added to Table C to indicate B.Id maps to A.Id...sort of thing.