Installing Wireshark on Windows 8

1. Download Winpcap 4.1.2 first from here:

http://www.winpcap.org/install/default.htm

2. Right-click the installer exe and choose troubleshoot compatibility, say it started in Windows 7

3. Install Wireshark

Advertisements

“value does not fall within the expected range” XAML exception using DataTemplateSelector

For the record I made a stupid error in Xaml and got bashed with the usual unhelpful error message (no stack trace, no line numbers just the message you see above).

I’d created a custom DataTemplateSelector but rather than set the ItemTemplateSelector property on the GridView, I’d put it inside the . Nothing complained but the app threw a runtime exception as above.

Instead putting the DataTemplateSelector as a static resource and setting ItemTemplateSelector=”{StaticResource myTemplateSelector}” resolved the problem.