Response.Write(className.GetType());看看

解决方案 »

  1.   

    问题是不是出在("topNamingSpace.subNamingspace.className")?
    你可以看看Type.GetType是什么
      

  2.   

    换成System.Int32等系统已有的类,都可以的,换成自己的类就不行了,自己写的类有什么要求吗?比如生成的dll要放到全局程序集中等条件
      

  3.   

    改成myType=Type.GetType(topNamingSpace.subNamingspace.className.ToString());试试
      

  4.   

    to  jonsonzxw(.net从入门到精通):
    得到的type名和我给他的是一样的
      

  5.   

    如果你的类不是在当前的装配件中定义的或者定义该类的装配件不是全局装配件,你需要先Load定义该类的装配件,Like:System.Reflection.Assembly a = System.Reflection.Assembly.Load("你的装配件的名称"); 
    Type tt = a.GetType("topNamingSpace.subNamingspace.className");
      

  6.   

    to timmy3310
    File or assembly name 装备件名称, or one of its dependencies, was not found,找不到哦,是什么原因呢?
      

  7.   

    请参考这个贴子:http://expert.csdn.net/Expert/topic/1587/1587817.xml?temp=.228512
      

  8.   

    你的装配件放在那里了
    最好是把你的dll放到当前项目的bin目录下
    或者
    用regsvcs将你的装配件注册到全局参考
    ms-help://MS.VSCC/MS.MSDNVS.2052/cptools/html/cpgrfnetservicesinstallationutilityregsvcsexe.htm
      

  9.   

    myType=Type.GetType("topNamingSpace.subNamingspace.className, yourAssemblyName");
    或者
    typeof(topNamingSpace.subNamingspace.className);
    其中,yourAssemblyName是去掉后缀名的Dll文件名。