c# - NotimplementedException in System.Core.dll -


i getting error below in code:

an unhandled exception of type 'system.notimplementedexception' occurred in >system.core.dll

additional information: method or operation not implemented.

this happens when try set datasource on datagridview. error occurs on textchanged event on textbox trying filter datagridview based on input.

the code in event below:

        ienumerable<b2bhdr> filteredclaims = claims.where(sc => sc.claimnumber.tostring().contains(ntxtclaimnosearch.text));         dgvhdr.datasource = filteredclaims;         dgvhdr.autoresizecolumns();         if (filteredclaims.count() > 0)         {             dgvdtl.datasource = filteredclaims;             dgvdtl.datamember = "b2bdetails";             dgvdtl.autoresizecolumns();         }         else         {             dgvdtl.datasource = null;         } 

the error occurs on line dgvdtl.datasource = filteredclaims

i have searched , can't find similar. appreciate this.

the definition b2bhdr below:

[table(name = "tbl_b2bhdr")] public class b2bhdr {     private entityset<b2bdtl> _b2bdetails;     public b2bhdr()     {         this._b2bdetails = new entityset<b2bdtl>(ondtladded, ondtlremoved);     }      private void ondtladded(b2bdtl addeddtl) { addeddtl.hdrrecord = this; }     private void ondtlremoved(b2bdtl removeddtl) { removeddtl.hdrrecord = null; }       [association(thiskey = "bhid", storage = "_b2bdetails", otherkey = "bhid")]     public entityset<b2bdtl> b2bdetails     {         { return this._b2bdetails; }         set { this._b2bdetails.assign(value); }     }      [column(isprimarykey = true, isdbgenerated = true)] public int32 bhid { get; set; }     [column] public int32 cusid { get; set; }     [column] public int? rthid { get; set; }     [column] public int? inhid { get; set; }     [column] public datetime invoicedate { get; set; }     [column] public datetime? deliverydate { get; set; }     [column] public int32 referencenumber { get; set; }     [column] public int? claimnumber { get; set; }     [column] public int? creditinvoice { get; set; }     [column] public string customername { get; set; }     [column] public byte type { get; set; }     [column] public decimal invoicetotal { get; set; }     [column] public decimal taxtotal { get; set; }     [column] public int32 tempid { get; set; }     [column] public string notes { get; set; }     [column] public byte? status { get; set; }     [column] public byte deleted { get; set; } 

below debug information on error:

    first chance exception of type 'system.notimplementedexception' occurred in system.core.dll    'sldatasys.exe' (win32): loaded 'c:\windows\microsoft.net\framework64\v4.0.30319\diasymreader.dll'. cannot find or open pdb file.    system.transactions critical: 0 : <tracerecord xmlns="http://schemas.microsoft.com/2004/10/e2etraceevent/tracerecord" severity="critical"><traceidentifier>http://msdn.microsoft.com/tracecodes/system/activitytracing/2004/07/reliability/exception/unhandled</traceidentifier><description>unhandled exception</description><appdomain>sldatasys.exe</appdomain><exception><exceptiontype>system.notimplementedexception, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089</exceptiontype><message>the method or operation not implemented.</message><stacktrace>   @ system.linq.enumerable.iterator`1.system.collections.ienumerator.reset()    @ system.windows.forms.listbindinghelper.getfirstitembyenumerable(ienumerable enumerable)    @ system.windows.forms.listbindinghelper.getlistitempropertiesbyenumerable(ienumerable enumerable)    @ system.windows.forms.listbindinghelper.getlistitemproperties(object list)    @ system.windows.forms.listbindinghelper.getlistitemproperties(object list, propertydescriptor[] listaccessors)    @ system.windows.forms.bindingcontext.ensurelistmanager(object datasource, string datamember)    @ system.windows.forms.datagridview.datagridviewdataconnection.setdataconnection(object datasource, string datamember)    @ system.windows.forms.datagridview.set_datasource(object value)    @ dairyprocessing.frmb2bview.btnclearclaimsearch_click(object sender, eventargs e) in c:\data\projects\stonelees data systems\stonelees data systems\forms\frmb2bview.cs:line 223    @ system.windows.forms.button.onmouseup(mouseeventargs mevent)    @ system.windows.forms.control.wmmouseup(message&amp;amp; m, mousebuttons button, int32 clicks)    @ system.windows.forms.control.wndproc(message&amp;amp; m)    @ system.windows.forms.buttonbase.wndproc(message&amp;amp; m)    @ system.windows.forms.button.wndproc(message&amp;amp; m)    @ system.windows.forms.nativewindow.debuggablecallback(intptr hwnd, int32 msg, intptr wparam, intptr lparam)    @ system.windows.forms.unsafenativemethods.dispatchmessagew(msg&amp;amp; msg)    @ system.windows.forms.application.componentmanager.system.windows.forms.unsafenativemethods.imsocomponentmanager.fpushmessageloop(intptr dwcomponentid, int32 reason, int32 pvloopdata)    @ system.windows.forms.application.threadcontext.runmessageloopinner(int32 reason, applicationcontext context)    @ system.windows.forms.application.threadcontext.runmessageloop(int32 reason, applicationcontext context)    @ dairyprocessing.program.main() in c:\data\projects\stonelees data systems\stonelees data systems\program.cs:line 19</stacktrace><exceptionstring>system.notimplementedexception: method or operation not implemented.    @ system.linq.enumerable.iterator`1.system.collections.ienumerator.reset()    @ system.windows.forms.listbindinghelper.getfirstitembyenumerable(ienumerable enumerable)    @ system.windows.forms.listbindinghelper.getlistitempropertiesbyenumerable(ienumerable enumerable)    @ system.windows.forms.listbindinghelper.getlistitemproperties(object list)    @ system.windows.forms.listbindinghelper.getlistitemproperties(object list, propertydescriptor[] listaccessors)    @ system.windows.forms.bindingcontext.ensurelistmanager(object datasource, string datamember)    @ system.windows.forms.datagridview.datagridviewdataconnection.setdataconnection(object datasource, string datamember)    @ system.windows.forms.datagridview.set_datasource(object value)    @ dairyprocessing.frmb2bview.btnclearclaimsearch_click(object sender, eventargs e) in c:\data\projects\stonelees data systems\stonelees data systems\forms\frmb2bview.cs:line 223    @ system.windows.forms.button.onmouseup(mouseeventargs mevent)    @ system.windows.forms.control.wmmouseup(message&amp;amp; m, mousebuttons button, int32 clicks)    @ system.windows.forms.control.wndproc(message&amp;amp; m)    @ system.windows.forms.buttonbase.wndproc(message&amp;amp; m)    @ system.windows.forms.button.wndproc(message&amp;amp; m)    @ system.windows.forms.nativewindow.debuggablecallback(intptr hwnd, int32 msg, intptr wparam, intptr lparam)    @ system.windows.forms.unsafenativemethods.dispatchmessagew(msg&amp;amp; msg)    @ system.windows.forms.application.componentmanager.system.windows.forms.unsafenativemethods.imsocomponentmanager.fpushmessageloop(intptr dwcomponentid, int32 reason, int32 pvloopdata)    @ system.windows.forms.application.threadcontext.runmessageloopinner(int32 reason, applicationcontext context)    @ system.windows.forms.application.threadcontext.runmessageloop(int32 reason, applicationcontext context)    @ dairyprocessing.program.main() in c:\data\projects\stonelees data systems\stonelees data systems\program.cs:line 19</exceptionstring></exception></tracerecord>    unhandled exception of type 'system.notimplementedexception' occurred in system.core.dll    additional information: method or operation not implemented. 


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -