Absolutely love LinqtoCRM. This is how easy access to CRM data should be.
I found out today that when I queried a field that had no value, in my case the purpose field in a list, it caused the following error which I “fixed” by making sure the field was populated.
Thank you again for such a great project.
System.NullReferenceException was unhandled
Message=”Object reference not set to an instance of an object.”
Source=”Query5″
StackTrace:
at Sample.CrmQueryProvider.c__DisplayClass3`1.b__1(PropertyInfo p) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\CrmQueryProvider.cs:line 67
at System.Linq.Enumerable.d__d`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Sample.CrmQueryProvider.d__5`1.MoveNext() in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\CrmQueryProvider.cs:line 66
at Sample.Program.Main(String[] args) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\Program.cs:line 44
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
1 Comment