Custom Dialog Error

Hi all, I was wondering if anyone has seen this error before “‘Initialization of ‘System.Windows.Media.Imaging.BitmapImage’ threw an exception.’ Line number ‘389’ and line position ‘9’.”? Once we select anything on the custom dialog box the method will abort right away and throw that error. I think our custom dialog is corrupted but I am not sure how or if that is accurate. Any help or advice would be greatly appreciated.