Problem in using Assembly CreateInstance
- From: "Richard Blewett [DevelopMentor]" <richardb@xxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Aug 2005 04:07:10 -0700
Is ManWrapper in a namespace? You need to use the fully qualified name of the type.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Hi,
I want to create an Instance of Class using Assembly.CreateInstance
method. I have loaded my assmbly
Assembly exeAssmb = Assembly.LoadWithPartialName"CommonStructures");
//Assembly exeAssmb =
Assembly.LoadFrom("C:\\Inetpub\\wwwroot\\Vinoth\\CommonStructures.dll");
Then when i create an Instance of the Assembly it giving Undefined
Value.
string instClass = "ManWrapper";
object inst =exeAssmb.CreateInstance(instClass);
//object inst =Activator.CreateInstance(exeAssmb.FullName,instClass);
This class(ManWrapper) is in CommonStructures and i registered it in
gacutil also.
I tried the Commentd line also. What is the problem? Is anybody knows
solution please let me know.
Thanks,
Vinoth
[microsoft.public.dotnet.languages.csharp]
.
- Follow-Ups:
- Re: Problem in using Assembly CreateInstance
- From: vinoth
- Re: Problem in using Assembly CreateInstance
- References:
- Problem in using Assembly CreateInstance
- From: vinoth
- Problem in using Assembly CreateInstance
- Prev by Date: C# windows form problem
- Next by Date: Re: Problem in using Assembly CreateInstance
- Previous by thread: Problem in using Assembly CreateInstance
- Next by thread: Re: Problem in using Assembly CreateInstance
- Index(es):
Relevant Pages
|