指定的转换无效一例 利用反射创建接口时出现“指定的转换无效”三层结构中工厂转换对象为接口返回时候出现。return (IPhotoGroup)objType;原因是OleDb层的对象忘了继承接口层。接口下面啥都没有public class PhotoGroup : IDAL.IPhotoGroup