vendredi 11 décembre 2015

Reflection fails to get assembly types in Citrix

I have a WPF app running over Citrix and in one ViewModel, I load types and list them in a drop down. This works perfectly well when running locally but fails when running over Citrix. Please explain what I'm doing wrong.

//Get assembly
 var asm = System.Reflection.Assembly.GetExecutingAssembly();
//Get all report objects from assembly with a display name attribute defined
//This is what fails on Citrix
var rep = asm.GetTypes().Where(x => (typeof(Telerik.Reporting.Report)).IsAssignableFrom(x) && x.IsDefined(typeof(System.ComponentModel.DisplayNameAttribute), true)).ToList();





Aucun commentaire:

Enregistrer un commentaire