无法加载类型错误Asp.net C# [英] Could not load type error Asp.net C#

查看:107
本文介绍了无法加载类型错误Asp.net C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个aspx页面,该页面在本地主机上运行良好,但是在上载到服务器时出现错误

解析器错误
说明:在解析服务于此请求所需的资源期间发生错误.请查看以下特定的解析错误详细信息,并适当地修改您的源文件.

解析器错误消息:无法加载类型"pages_index"

源错误:

第1行:<%@页面标题="语言="C#" MasterPageFile =〜/MasterPage.master" AutoEventWireup ="true" CodeFile ="index.aspx.cs" Inherits ="pages_index"%>
< asp:Content ID ="Content1" ContentPlaceHolderID ="head" Runat ="Server">

我的aspx.cs代码是:-

i have a aspx page which is running well on localhost but giving an error while uploading to server error is

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 ''pages_index''

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="pages_index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

my aspx.cs code is:-

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class pages_index : System.Web.UI.Page
{





进行检查,请在此处检查www.mysolutionsmyway.com/index.aspx





for review check here www.mysolutionsmyway.com/index.aspx

推荐答案

您的CodeFile ="index.aspx.cs"是否正确?
可能在下面的链接会为您提供帮助

解析器错误:无法加载类型 [
is your CodeFile="index.aspx.cs" correct?
may be below link will help you

Parser error: Could not load type[^]


这篇关于无法加载类型错误Asp.net C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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