DBContext - ArgumentNullException
ravikrishna
Posts: 7 New member
Hi,
A very simple basic code is throwing the exception.
This is strange because, when we run the application directly, the value is NEVER Null. Only through the Smart Assembly when we build and run, I'm encountering this issue. Any help would be appreciated.
Thanks,
Ravi
A very simple basic code is throwing the exception.
var dbContext = new CustomDBContext();<br><b>var result = dbContext.tblXXX;</b>The above line is throwing the "System.ArgumentNullException"
System.ArgumentNullException: Value cannot be null.
Parameter name: source
--at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source):
Thanks,
Ravi
Tagged:
Answers