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.
to: qz4365(冷风清扬) 我说的就是我自己的装配件,我没有在<assembly>中引用,直接在应用程序中引用namespace的,程序可以运行。(我用记事本写的代码,保存为.aspx文件)
如果是引用.NET的namespace,不用在这里添加.
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.
我说的就是我自己的装配件,我没有在<assembly>中引用,直接在应用程序中引用namespace的,程序可以运行。(我用记事本写的代码,保存为.aspx文件)
你可以修改 web.config的assembly
让vs.net 自动添加你要的assemblies
哈哈, //佩服,继续关注问题