(警告 – asp新手)我有一个带标签的aspx文件
<%@ Page Language=VB ... %>
就在文件的开头.
从我的IIS服务器(http://localhost/myservice/default.aspx)调用它时,这给了我错误
This page contains the following
errors:error on line 1 at column 2:
StartTag: invalid element name
Below is a rendering of the page up to
the first error.
我究竟做错了什么?
解决方法
看起来好像浏览器试图显示它认为是XML文件的内容,因为它在第一行的第二个字符上给出了错误.所以我认为文件没有被解析,但只是立即返回.检查IIS服务器是否配置正确,并在返回页面之前实际解析ASP标记.