S
Srikumar Natarajan
I have a question on Reflections.
Basically, I have two visual studio solutions: SolA & SolB.
SolA has a console application project and a class library project. SolB has
some framework class libary projects. The console application proj in SolA
has references to many of the framework class library projects in SolB.
There is one particular project in SolB that has some code to load the
assembly of the class libabry project in SolA. I am using the following call
for loading the assembly.
Assembly asm = Assembly.Load("SolA.ClassLibProj");
I basically need to create an instance of a class present in the SolA
classLibProj using reflections. But, for some reason the line fails stating
an error that the file not found.
To summarize, the execution starts in SolA.ColsoleProj; Then a call happens
to SolB's framework project that inturn tries to load the SolA.ClassLibProj
through assembly.
Please let me know where I am going wrong.
Thanks,
Srikumar
Basically, I have two visual studio solutions: SolA & SolB.
SolA has a console application project and a class library project. SolB has
some framework class libary projects. The console application proj in SolA
has references to many of the framework class library projects in SolB.
There is one particular project in SolB that has some code to load the
assembly of the class libabry project in SolA. I am using the following call
for loading the assembly.
Assembly asm = Assembly.Load("SolA.ClassLibProj");
I basically need to create an instance of a class present in the SolA
classLibProj using reflections. But, for some reason the line fails stating
an error that the file not found.
To summarize, the execution starts in SolA.ColsoleProj; Then a call happens
to SolB's framework project that inturn tries to load the SolA.ClassLibProj
through assembly.
Please let me know where I am going wrong.
Thanks,
Srikumar