Problem in using Assembly CreateInstance
- From: vinoth@xxxxxxxxxxxx
- Date: 22 Aug 2005 03:45:37 -0700
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
.
- Follow-Ups:
- Problem in using Assembly CreateInstance
- From: Richard Blewett [DevelopMentor]
- Problem in using Assembly CreateInstance
- Prev by Date: Re: Visual C# 2005 Databinding to UI tutorial
- Next by Date: C# windows form problem
- Previous by thread: Customizing scrollbars in .NET (C#)
- Next by thread: Problem in using Assembly CreateInstance
- Index(es):