title: Visual studio 2012 is terminating/restarting during running the windows phone 8 app
body: <p>I am working on a windows phone 8 app, few days ago it was running properly but since last day Visual Studio 2012 Professional is not working properly it is restarting during executing the wp8 app. I put the breakpoints to debug into my app but in actual cursor is not even intitalize the app.xaml.cs.</p>
  
  <p>So for detection the error i searched the Windows.Log from the event viewer there i found errors logs. But i am unable to understand that juggle. I am writing that event log as code please give me some helpful suggestions. </p>
  
  <pre><code>two error logs were there.
  
  **first one is '.Net.Error'
  ------------------------**
      Log Name:      Application
      Source:        .NET Runtime
      Date:          1/2/2014 7:04:52 PM
      Event ID:      1026
      Task Category: None
      Level:         Error
      Keywords:      Classic
      User:          N/A
      Computer:      Ashish-PC
      Description:
      Application: devenv.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: System.Reflection.TargetInvocationException
      Stack: at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
      at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
      at System.Delegate.DynamicInvokeImpl(System.Object[])
      at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
      at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
      at System.Windows.Threading.DispatcherOperation.InvokeImpl()
      at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
      at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
      at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
      at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
      at System.Windows.Threading.DispatcherOperation.Invoke()
      at System.Windows.Threading.Dispatcher.ProcessQueue()
      at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
      at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
      at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
      at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
      at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
      at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
      at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
  
       Event Xml:
       &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
        &lt;System&gt;
         &lt;Provider Name=".NET Runtime" /&gt;
         &lt;EventID Qualifiers="0"&gt;1026&lt;/EventID&gt;
         &lt;Level&gt;2&lt;/Level&gt;
         &lt;Task&gt;0&lt;/Task&gt;
         &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
         &lt;TimeCreated SystemTime="2014-01-02T13:34:52.000000000Z" /&gt;
         &lt;EventRecordID&gt;562583&lt;/EventRecordID&gt;
         &lt;Channel&gt;Application&lt;/Channel&gt;
         &lt;Computer&gt;Ashish-PC&lt;/Computer&gt;
        &lt;Security /&gt;
       &lt;/System&gt;
       &lt;EventData&gt;
         &lt;Data&gt;
            Application: devenv.exe
            Framework Version: v4.0.30319
            Description: The process was terminated due to an unhandled exception.
            Exception Info: System.Reflection.TargetInvocationException
        Stack:
     at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
     at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
     at System.Delegate.DynamicInvokeImpl(System.Object[])
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.DispatcherOperation.InvokeImpl()
     at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
     at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
     at System.Windows.Threading.DispatcherOperation.Invoke()
     at System.Windows.Threading.Dispatcher.ProcessQueue()
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
  &lt;/Data&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  
  =================
  Log Name:      Application
  Source:        .NET Runtime
  Date:          1/2/2014 7:04:52 PM
  Event ID:      1026
  Task Category: None
  Level:         Error
  Keywords:      Classic
  User:          N/A
  Computer:      Ashish-PC
  Description:
  Application: devenv.exe
  Framework Version: v4.0.30319
  Description: The process was terminated due to an unhandled exception.
  Exception Info: System.Reflection.TargetInvocationException
  Stack:
     at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
     at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
     at System.Delegate.DynamicInvokeImpl(System.Object[])
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.DispatcherOperation.InvokeImpl()
     at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
     at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
     at System.Windows.Threading.DispatcherOperation.Invoke()
     at System.Windows.Threading.Dispatcher.ProcessQueue()
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
  
  Event Xml:
  &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    &lt;System&gt;
      &lt;Provider Name=".NET Runtime" /&gt;
      &lt;EventID Qualifiers="0"&gt;1026&lt;/EventID&gt;
      &lt;Level&gt;2&lt;/Level&gt;
      &lt;Task&gt;0&lt;/Task&gt;
      &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime="2014-01-02T13:34:52.000000000Z" /&gt;
      &lt;EventRecordID&gt;562583&lt;/EventRecordID&gt;
      &lt;Channel&gt;Application&lt;/Channel&gt;
      &lt;Computer&gt;Ashish-PC&lt;/Computer&gt;
      &lt;Security /&gt;
    &lt;/System&gt;
    &lt;EventData&gt;
      &lt;Data&gt;Application: devenv.exe
  Framework Version: v4.0.30319
  Description: The process was terminated due to an unhandled exception.
  Exception Info: System.Reflection.TargetInvocationException
  Stack:
     at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
     at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
     at System.Delegate.DynamicInvokeImpl(System.Object[])
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.DispatcherOperation.InvokeImpl()
     at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
     at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
     at System.Windows.Threading.DispatcherOperation.Invoke()
     at System.Windows.Threading.Dispatcher.ProcessQueue()
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
     at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
  &lt;/Data&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  
  **Second one is 'Application.Error'
  --------------------------------**
  
  Log Name:      Application
  Source:        Application Error
  Date:          1/2/2014 7:04:52 PM
  Event ID:      1000
  Task Category: (100)
  Level:         Error
  Keywords:      Classic
  User:          N/A
  Computer:      Ashish-PC
  Description:
  Faulting application name: devenv.exe, version: 11.0.61030.0, time stamp: 0x5270a974
  Faulting module name: KERNELBASE.dll, version: 6.3.9600.16408, time stamp: 0x523d4548
  Exception code: 0xe0434352
  Fault offset: 0x00012eec
  Faulting process id: 0x1cf4
  Faulting application start time: 0x01cf07bf2f983579
  Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
  Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
  Report Id: a87d9549-73b2-11e3-befa-844bf5a2c13e
  Faulting package full name: 
  Faulting package-relative application ID: 
  Event Xml:
  &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    &lt;System&gt;
      &lt;Provider Name="Application Error" /&gt;
      &lt;EventID Qualifiers="0"&gt;1000&lt;/EventID&gt;
      &lt;Level&gt;2&lt;/Level&gt;
      &lt;Task&gt;100&lt;/Task&gt;
      &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime="2014-01-02T13:34:52.000000000Z" /&gt;
      &lt;EventRecordID&gt;562584&lt;/EventRecordID&gt;
      &lt;Channel&gt;Application&lt;/Channel&gt;
      &lt;Computer&gt;Ashish-PC&lt;/Computer&gt;
      &lt;Security /&gt;
    &lt;/System&gt;
    &lt;EventData&gt;
      &lt;Data&gt;devenv.exe&lt;/Data&gt;
      &lt;Data&gt;11.0.61030.0&lt;/Data&gt;
      &lt;Data&gt;5270a974&lt;/Data&gt;
      &lt;Data&gt;KERNELBASE.dll&lt;/Data&gt;
      &lt;Data&gt;6.3.9600.16408&lt;/Data&gt;
      &lt;Data&gt;523d4548&lt;/Data&gt;
      &lt;Data&gt;e0434352&lt;/Data&gt;
      &lt;Data&gt;00012eec&lt;/Data&gt;
      &lt;Data&gt;1cf4&lt;/Data&gt;
      &lt;Data&gt;01cf07bf2f983579&lt;/Data&gt;
      &lt;Data&gt;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe&lt;/Data&gt;
      &lt;Data&gt;C:\WINDOWS\SYSTEM32\KERNELBASE.dll&lt;/Data&gt;
      &lt;Data&gt;a87d9549-73b2-11e3-befa-844bf5a2c13e&lt;/Data&gt;
      &lt;Data&gt;
      &lt;/Data&gt;
      &lt;Data&gt;
      &lt;/Data&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  
  ===================
  
  Log Name:      Application
  Source:        Application Error
  Date:          1/2/2014 7:04:52 PM
  Event ID:      1000
  Task Category: (100)
  Level:         Error
  Keywords:      Classic
  User:          N/A
  Computer:      Ashish-PC
  Description:
  Faulting application name: devenv.exe, version: 11.0.61030.0, time stamp: 0x5270a974
  Faulting module name: KERNELBASE.dll, version: 6.3.9600.16408, time stamp: 0x523d4548
  Exception code: 0xe0434352
  Fault offset: 0x00012eec
  Faulting process id: 0x1cf4
  Faulting application start time: 0x01cf07bf2f983579
  Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
  Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
  Report Id: a87d9549-73b2-11e3-befa-844bf5a2c13e
  Faulting package full name: 
  Faulting package-relative application ID: 
  Event Xml:
  &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    &lt;System&gt;
      &lt;Provider Name="Application Error" /&gt;
      &lt;EventID Qualifiers="0"&gt;1000&lt;/EventID&gt;
      &lt;Level&gt;2&lt;/Level&gt;
      &lt;Task&gt;100&lt;/Task&gt;
      &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime="2014-01-02T13:34:52.000000000Z" /&gt;
      &lt;EventRecordID&gt;562584&lt;/EventRecordID&gt;
      &lt;Channel&gt;Application&lt;/Channel&gt;
      &lt;Computer&gt;Ashish-PC&lt;/Computer&gt;
      &lt;Security /&gt;
    &lt;/System&gt;
    &lt;EventData&gt;
      &lt;Data&gt;devenv.exe&lt;/Data&gt;
      &lt;Data&gt;11.0.61030.0&lt;/Data&gt;
      &lt;Data&gt;5270a974&lt;/Data&gt;
      &lt;Data&gt;KERNELBASE.dll&lt;/Data&gt;
      &lt;Data&gt;6.3.9600.16408&lt;/Data&gt;
      &lt;Data&gt;523d4548&lt;/Data&gt;
      &lt;Data&gt;e0434352&lt;/Data&gt;
      &lt;Data&gt;00012eec&lt;/Data&gt;
      &lt;Data&gt;1cf4&lt;/Data&gt;
      &lt;Data&gt;01cf07bf2f983579&lt;/Data&gt;
      &lt;Data&gt;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe&lt;/Data&gt;
      &lt;Data&gt;C:\WINDOWS\SYSTEM32\KERNELBASE.dll&lt;/Data&gt;
      &lt;Data&gt;a87d9549-73b2-11e3-befa-844bf5a2c13e&lt;/Data&gt;
      &lt;Data&gt;
      &lt;/Data&gt;
      &lt;Data&gt;
      &lt;/Data&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  </code></pre>