什么是解析器错误以及为什么我收到此错误? [英] what is the parser error and why i'am getting this error?

查看:139
本文介绍了什么是解析器错误以及为什么我收到此错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当iam运行我的应用程序时,我收到错误



when iam running my application iam getting the error

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Practice.Default1'.

Source Error:


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="Practice.Default1" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /Default2.aspx    Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

推荐答案

很明显它无法识别名为Default1的类。查看代码我想它应该是Default2。
Its clear that it's not able to identify the Class named Default1. Looking at the code I guess it should be Default2.


这篇关于什么是解析器错误以及为什么我收到此错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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