【发布时间】:2016-10-16 13:00:06
【问题描述】:
我在使用简单的 ASP.NET 表单时遇到问题。我已经在本地对其进行了编码,并通过点击 F5 在本地对其进行了测试。我现在已将其上传到我的服务器,但出现解析器错误。
解析器错误消息:“电子邮件”不是输入标签的有效类型。
我的代码如下:
<input type="email" class="form-control" ID="email" placeholder="your@email.com" runat="server" required />
我的服务器是运行 IIS 8 的 Windows Server 2012 R2。
- 如果我使用 F5 运行页面,它可以在
http://localhost:55343/这样的地址上完美运行。 - 如果我导航到
http://localhost/site/form.aspx,我会收到解析器错误。 - 如果我导航到
http://example.com/form.aspx,我会收到解析器错误。
我查看了列出 here 和 here 的解决方案,但它们似乎不相关。
我错过了什么?
【问题讨论】:
-
这似乎是this post的副本
-
@Yab 我在我的问题中提到了这一点。那里提到的程序似乎不再相关。