"与开始标记:无效的元素名称" Default.aspx中 [英] "StartTag: invalid element name" in default.aspx

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

问题描述

(警告 - ASP新手)我与标签的aspx文件

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

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

右在文件的开头。

right at the beginning of the file.

当从我的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:

第2栏错误在第1行:
  开始标记:无效的元素名称

  下面是网页高达渲染
  第一个错误。

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.

这篇关于&QUOT;与开始标记:无效的元素名称&QUOT; Default.aspx中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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