How to recover from a Silverlight UnhandledException -


in app() initialization code, include generic handler

unhandledexception += application_unhandledexception;  private void application_unhandledexception(object sender, applicationunhandledexceptioneventargs e) { debugger.break(); } 

i have 2 screens work fine, when navigating , forth between 2 screens number of times (varies between 7 , 12) hit breakpoint exception

{system.windows.applicationunhandledexceptioneventargs}   base {system.eventargs}:   {system.windows.applicationunhandledexceptioneventargs}       exceptionobject: {system.argumentexception: value not fall within expected range.}       handled: false   

and if remove unhandledexception , set debugger break on unhandled, following:

unhandled error in silverlight application   code: 4004   category: managedruntimeerror   message: system.windows.markup.xamlparseexception: 2028 error has occurred. [line: 0 position: 0] ---> system.argumentexception: [arg_argumentexception]   arguments:  debugging resource strings unavailable.   key , arguments provide sufficient information diagnose problem.   see http://go.microsoft.com/fwlink/?linkid=106663&version=4.0.60531.0&file=mscorlib.dll&key=arg_argumentexception   @ ms.internal.xcpimports.checkhresult(uint32 hr)   @ ms.internal.xcpimports.collection_addvalue[t](presentationframeworkcollection`1 collection   

even if set e.handled = true, application crashes.

important note:
application, under mvvm framework works on 99.9% of time, navigating between dozens of screens. 1 user has reported being able crash application navigating between 2 screens, , after 10 , forth tries

my questions are:

any way determine causing it?

any way prevent it?

what best way recover error?

followup:

the problem solved naming view control, though should not needed

from

<telnav:radtabitem.content>  <views:detail_infoview /> </telnav:radtabitem.content> 

to

<telnav:radtabitem.content>  <views:detail_infoview x:name="detailsinnerview"/> </telnav:radtabitem.content> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -