I am trying to create instance of class by using reflection in ASP.net web site. Class ClassName is defined and located in App_code folder. Following line returns null, what could be wrong.
Type type = Type.GetType("NameSpace.ClassName", false, true);
Afin, try this. This is to piggyback on Adam Robinson’s answer and to demonstrate what you need to do to test the statements made in the answer and the comments for yourself.
The assembly qualified name will be something like “Sample.Foo, App_Code.qwijwhsy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”.