我的WEB。CONFIG中就没有用这一节,很方便呀

解决方案 »

  1.   

    web.config中的<assembly>节是为你自己的装配件创建一个引用,再在每个应用程序中引用你装配件的namespace,就可以使用你自己的装配件了.
      如果是引用.NET的namespace,不用在这里添加.
      

  2.   

    you must be doing something wrong, see this ASP.NET FAQ from http://wintellect.com/resources/faqs/default.aspx?faq_id=1
    Q:What assemblies can I reference in an ASPX file without using @ Assembly directives? A:
    ASP.NET links to the following assemblies by default:
    Mscorlib.dll 
    System.dll 
    System.Data.dll 
    System.Drawing.dll 
    System.Web.dll 
    System.Web.Services.dll 
    System.Xml.dll 
    This list of "default" assemblies is defined in the <assemblies> section of Machine.config. You can modify it by editing Machine.config or including an section in a local Web.config file.
      

  3.   

    to: qz4365(冷风清扬)
    我说的就是我自己的装配件,我没有在<assembly>中引用,直接在应用程序中引用namespace的,程序可以运行。(我用记事本写的代码,保存为.aspx文件)
      

  4.   

    根据思归所说
    你可以修改 web.config的assembly 
    让vs.net 自动添加你要的assemblies
      

  5.   

    我用记事本写的代码,保存为.aspx文件)???????
    哈哈, //佩服,继续关注问题