Kazunto 2020-04-17 10:37 采纳率: 33.3%
浏览 260

用ASP.NET写了个练习网页,部署后无法正确启动

将网页部署在本地文件夹里,打开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.

将文件后缀改成 html 就显示了这个东西,有没有大佬知道怎么解决?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="NexLonInputMachineWeb.Index" ResponseEncoding="utf-8" %>

  • 写回答

2条回答 默认 最新

  • threenewbee 2020-04-17 10:54
    关注

    iis可能是在vs以后安装的,没有配置
    https://blog.csdn.net/aigochina/article/details/17352195

    评论

报告相同问题?