错误信息已经说明了,要在web.config文件里面的compilation 节点debug设置为true <compilation defaultLanguage="c#" debug="true" />
那个文件我已经改过了,还是没用。不过现在用2005版本了,就没这个问题了,谢谢帮忙!