C
Chakravarthy Bollapalli \(IFIN SCC AI\)
Hi,
I have a .net dll (say dll assembly) which has a class implimenting an
interface defined in a application (say application assembly)
so I add the reference of the application assembly to the dll project and
compile. I have a dll available.
from the application assembly i create an instance of the class defined in
dll assembly.
When i try to typecast the instance into an interface instance I get an
exception
--
An unhandled exception of type 'System.InvalidCastException' occurred in
test.exe
Additional information: Specified cast is not valid.
--
but I am able to invoke methods on the instance using
Type.InvokeMember(......) method.
what could be wrong?
kalyan
I have a .net dll (say dll assembly) which has a class implimenting an
interface defined in a application (say application assembly)
so I add the reference of the application assembly to the dll project and
compile. I have a dll available.
from the application assembly i create an instance of the class defined in
dll assembly.
When i try to typecast the instance into an interface instance I get an
exception
--
An unhandled exception of type 'System.InvalidCastException' occurred in
test.exe
Additional information: Specified cast is not valid.
--
but I am able to invoke methods on the instance using
Type.InvokeMember(......) method.
what could be wrong?
kalyan