T
TheLongshot
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
(IDataProviderBase)(((ConstructorInfo)cache["IDataProviderBase"]).Invoke(null)
);
worked fine in 2003, but gives me an InvalidCastException in 2005. The
object getting created is derived from IDataProviderBase, and when I
try to cast to the object's class, I still get an InvalidCastException.
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
(IDataProviderBase)(((ConstructorInfo)cache["IDataProviderBase"]).Invoke(null)
);
worked fine in 2003, but gives me an InvalidCastException in 2005. The
object getting created is derived from IDataProviderBase, and when I
try to cast to the object's class, I still get an InvalidCastException.
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