James Lohr

James Lohr

  • NA
  • 1
  • 8.6k

Vague Exception Stacktrace - don't know where in my code it's being thrown

Dec 17 2010 11:13 AM
Hi,

I'm getting the following stracktrace (very rarely!). My application is deployed to ~1000 devices, and occasionally they unhandled exception manager will catch this exception and cause my app to crash.

Since the stacktrace doesn't tell me where exactly it's originally getting thrown from, I don't know how to go about handling it.

Any advice would be greatly appreciated.

The Exception and stack trace is given below:

<Exception xsi:type="NetworkInformationException">
<ErrorCode>13</ErrorCode>
<NativeErrorCode>13</NativeErrorCode>
<Message>The data is invalid</Message>
<StackTrace>   at System.Net.NetworkInformation.SystemNetworkInterface.GetAdaptersAddresses(AddressFamily family, FixedInfo fixedInfo)
   at System.Net.NetworkInformation.SystemNetworkInterface.PostWin2KGetNetworkInterfaces(AddressFamily family)
   at System.Net.NetworkInformation.SystemNetworkInterface.GetNetworkInterfaces(AddressFamily family)
   at System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable()
   at System.Net.NetworkInformation.NetworkChange.AvailabilityChangeListener.ChangedAddress(Object sender, EventArgs eventArgs)
   at System.Net.NetworkInformation.NetworkChange.AddressChangeListener.AddressChangedCallback(Object stateObject, Boolean signaled)
   at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)</StackTrace>
<Source>System</Source>
</Exception>

Answers (1)