How To Solve Parse Error In Asp.net
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error: Server Error in '/' Application Parser Error, asp.net c#? up vote 0 down vote favorite In my application, other pages are running correctly, but this page is throwing an error. Code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OutReport.aspx.cs" Inherits="HMS.OutReport" MasterPageFile="~/Site.Master" %>
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ASP.NET Parser Error Cannot load code behind http://stackoverflow.com/questions/18017940/error-server-error-in-application-parser-error-asp-net-c up vote 5 down vote favorite 1 Hey I am getting the following error 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 '_AddToCart'. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddToCart.aspx.cs" Inherits="_AddToCart" Title="Untitled Page" %> Line http://stackoverflow.com/questions/6213274/asp-net-parser-error-cannot-load-code-behind 2: Line 3: Source File: /FSAICart/AddToCart.aspx Line: 1 Where I do have the matching code behind file which is defined as follows using System; public partial class _AddToCart : System.Web.UI.Page { Any Ideas ? asp.net share|improve this question edited Jun 2 '11 at 10:27 Muhammad Akhtar 39.4k31104176 asked Jun 2 '11 at 10:25 StevieB 6181869130 Make sure the underscore appears everywhere. –DOK Jun 2 '11 at 10:29 Generally its a best practice to have same name to both the class and the file.try cleaning the solution and building again. –Aravind Jun 2 '11 at 10:31 got rid of the underscore but still get error Could not load type 'AddToCart'. <%@ Page Language="C#" AutoEventWireup="True" Codebehind="AddToCart.aspx.cs" Inherits="AddToCart" Title="Untitled Page" %> –StevieB Jun 2 '11 at 13:09 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted Specify the namespace of the Inherits property of Page directive Look at codebehind of your page. It looks like: namespace MyWebSite { public partial class _AddToCart : System.Web.UI.Page { //... } } So you must change Page directive to: <%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddToCart.aspx.cs" Inherits
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask http://www.codeproject.com/Questions/714603/An-Error-Occurred-During-The-Parsing-Of-A-Resource a Question View Unanswered Questions View All Questions... C# questions Linux questions http://www.asprunner.com/forums/topic/1419-parser-error-message-could-not-load-type-project/ ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database how to Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge  The how to solve Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ "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". I Have... Rate this: Please Sign up or sign in to vote. See more: ASP.NET 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 'ShoeFun.User'. Source Error: Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="User.master.cs" Inherits="ShoeFun.User" %> Line 2: Line 3: Source File: /User.Master Line: 1 Version Information: Microsoft .NET Framework Version:2.0.50727
New Content Page 1 of 1 You cannot start a new topic This topic is locked [SOLVED] [SOLVED]Parser Error Message: Could not load type 'Project Parser Error Message: Could not load typ Rate Topic: #1 swat Advanced Member Group: Members Posts: 300 Joined: 18-June 03 Posted 11 May 2005 - 01:39 PM I am getting this error- and have no idea so far, 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 'Project1.debt_list'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="debt_list.aspx.vb" Inherits="Project1.debt_list" %> Line 2: Line 3: thanks 0 Back to top MultiQuote Reply #2 Eugene Advanced Member Group: Members Posts: 295 Joined: 23-March 05 Posted 11 May 2005 - 02:09 PM please check if there is Framework v.1.1.* at your computer. You can check it here: C:\WINDOWS\Microsoft.NET\FrameworkIf there is framework v.1.1, please choose this version in ASPRunner.NET, step 12 (NET Framework settings). If you don't have this version, you can download it at: http://www.microsoft...&displaylang=en and install it. After that please build project again. 0 Back to top MultiQuote Reply #3 swat Advanced Member Group: Members Posts: 300 Joined: 18-June 03 Posted 11 May 2005 - 02:27 PM Eugene, on May 11 2005, 02:09 PM, said:please check if there is Framework v.1.1.* at your computer. You can check it here: C:\WINDOWS\Microsoft.NET\FrameworkIf there is framework v.1.1, please choose this version in ASPRunner.NET, step 12 (NET Framework settings). If you don't have this version, you can download it at: http://www.microsoft...&displaylang=en and install it. After that please build project again. I did re-install framework1.1 and now I am getting this error Error: The .Net Data OLE DB Provider(System.Data.OleDb) requires Microsoft Data Access Components(MDAC) version 2.6 or later. Version 2.53.6200.0 was found currently installed. Thx 0 Back to top MultiQuote Reply #4 andreys Member Group: Members Posts: 19 Joined: 10-May 05 Posted 11 May 2005 - 04:41 PM swat, on May 11 2005, 01:39 PM, said:I am getting this error- and have no idea so far, 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 'Pr