c# - My application crashed when snapped with items in listviews -


so, im working on project using c#/xaml windows 8 store app , i've encountred problem.

when user navigates page listview controls shows up. when user decides snap page application crashes , shows this:

enter image description here

in intellitrace shows , press exception.

enter image description here

it navigates me code.

     /// <summary>     /// implement partial method configure service endpoint.     /// </summary>     /// <param name="serviceendpoint">the endpoint configure</param>     /// <param name="clientcredentials">the client credentials</param>      static partial void configureendpoint(system.servicemodel.description.serviceendpoint serviceendpoint, system.servicemodel.description.clientcredentials clientcredentials);      public employeeassisterclient() :              base(employeeassisterclient.getdefaultbinding(), employeeassisterclient.getdefaultendpointaddress()) {         this.endpoint.name = endpointconfiguration.timeloggerendpoint.tostring();         configureendpoint(this.endpoint, this.clientcredentials);     } 

i add controls listview follows:

            _timereports = _timereportdatabase.getall();              foreach (var timereport in _timereports)             {                 _invoicedcontrols.add(new invoicedcontrol(timereport)                     {                         customer = timereport.customername,                         date = timereport.date,                         workedtime = timereport.workedtime.tostring(),                         invoicedtime = timereport.invoicedtime.tostring()                     });             }              timereportslistviewfillview.itemssource = _invoicedcontrols;             timereportslistviewfullview.itemssource = _invoicedcontrols;             timereportslistviewportraitview.itemssource = _invoicedcontrols;             timereportslistviewsnappedview.itemssource = _invoicedcontrols; 

edit==============================================================================

this error wich thrown

enter image description here

i turned off wcf debugging typing "c:\program files\microsoft visual studio 11.0\common7\ide\vsdiag_regwcf.exe -u" cmd , resolved 2/3 problems

this last error in intellitrace: enter image description here

what error mean? , any1 have idea how fix this?

based on you've shown, it's you've used generated page (from template), removed of xaml inside of it, fine.

the thing haven't done removed references controls removed storyboards of visualstatemanager, snapped state.

go page , check (generally @ bottom of) xaml "snapped" visualstate, check , see if of storyboards have targetname of control no longer have.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -