This issue can be reproduced easily. In a new project add a ListView (LV) and in the code-behind add the following line of code:
((dynamic)LV).ItemsSource = new List<string>();
Run in Debug mode and Release mode. In Release mode, a RuntimeBinderException will be thrown with the following message:
"Unhandled exception at 0x7B786011 (Windows.UI.Xaml.dll) in TestApp.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x06182CB0, 0x00000003)."
Then replace the line of code above with the following line of code:
LV.ItemsSource = new List<string>();
There will be no exception in either mode.