相关文章推荐
兴奋的冲锋衣  ·  Chrome 插件 0基础开发实战课 - 知乎·  1 年前    · 
谦虚好学的企鹅  ·  c - 打印指针数组,指针数组赋值 - ...·  1 年前    · 
任性的黑框眼镜  ·  【直播】中国科学院化学研究所分子科学前沿交叉 ...·  2 年前    · 
傲视众生的玉米  ·  python - Converting a ...·  2 年前    · 
小百科  ›  ASP.net中出错: BC30037:字符无效开发者社区
asp
文雅的登山鞋
1 年前
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
提问

问 ASP.net中出错: BC30037:字符无效

Stack Overflow用户
提问于 2014-06-09 14:56:28
EN

我已经开始学习asp.net了。我经历了基础知识,现在我开始构建小型应用程序。我使用的是VS2012,用VB创建了空的Web应用程序项目。

我可以看到自动创建的web.config,下面的代码行是这样写的:

<?xml version="1.0"?>
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
<configuration>
    <system.web>
      <compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5"  />
    </system.web>
</configuration>

我创建了Default.aspx文件,并编写了以下代码行:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" %>
    HelloWorldLabel.Text = "Hello, world!";
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
    <form id="form1" runat="server">
        <asp:Label runat="server" id="HelloWorldLabel"></asp:Label>
    </form>
</body>
</html>

当我在浏览器上运行这个应用程序时,我在该页面上得到以下错误:

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
Compiler Error Message: BC30037: Character is not valid.
Source Error:
Line 2:  
Line 3:  <%
 
推荐文章
兴奋的冲锋衣  ·  Chrome 插件 0基础开发实战课 - 知乎
1 年前
谦虚好学的企鹅  ·  c - 打印指针数组,指针数组赋值 - SegmentFault 思否
1 年前
任性的黑框眼镜  ·  【直播】中国科学院化学研究所分子科学前沿交叉讲座报告 - 知乎
2 年前
傲视众生的玉米  ·  python - Converting a pandas dataframe to a networkx graph - Stack Overflow
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
小百科 - 百科知识指南
© 2024 ~ 沪ICP备11025650号