I'm in the process of converting a VS 2003 app to VS 2005. Right now
I've run into a problem which I can't figure out. The following
statement:
return
(IDataProviderB ase)(((Construc torInfo)cache["IDataProviderB ase"]).Invoke(null)
);
worked fine in 2003, but gives me an InvalidCastExce ption in 2005. The
object getting created is derived from IDataProviderBa se, and when I
try to cast to the object's class, I still get an InvalidCastExce ption.
All of this is in the same DLL, so there shouldn't be any versioning
issues as far as I know.
Any clue what the problem is?
Jason
I've run into a problem which I can't figure out. The following
statement:
return
(IDataProviderB ase)(((Construc torInfo)cache["IDataProviderB ase"]).Invoke(null)
);
worked fine in 2003, but gives me an InvalidCastExce ption in 2005. The
object getting created is derived from IDataProviderBa se, and when I
try to cast to the object's class, I still get an InvalidCastExce ption.
All of this is in the same DLL, so there shouldn't be any versioning
issues as far as I know.
Any clue what the problem is?
Jason
Comment