Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:-

C#
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
{




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

1 solution

is your CodeFile="index.aspx.cs" correct?
may be below link will help you

Parser error: Could not load type[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900