“StartTag:无效的元素名称"在 default.aspx [英] "StartTag: invalid element name" in default.aspx

查看:33
本文介绍了“StartTag:无效的元素名称"在 default.aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(警告 - asp 新手)我有一个带有标签的 aspx 文件

(Warning - asp newbie) I have an aspx file with the tag

    <%@ Page Language=VB  ... %>

就在文件的开头.

从我的 IIS 服务器调用它时 (http://localhost/myservice/default.aspx),这给了我错误

When calling this from my IIS server (http://localhost/myservice/default.aspx), this gives me the error

本页包含以下内容错误:

This page contains the following errors:

第 1 行第 2 列的错误:StartTag:无效的元素名称
下面是页面的渲染第一个错误.

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 标记.

It appears as if the browser tries to display what it thinks is an XML file, since it gives an error on the second character of the first line. So I think the file is not parsed, but simply returned as is immediately. Check if your IIS server is configured correctly and that it actually parses your ASP tags before returning the page.

这篇关于“StartTag:无效的元素名称"在 default.aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆