Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
XML
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:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /User.Master    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Posted
Updated 16-Aug-18 7:27am

It's Works by :

1- Set the "Build Action" to Content
2- Set the "Copy to Output Directory" to Copy always

Steps to set these options:

===> Right click on Web-form (Defoult.aspx)
===> then click Properties
===> Set the "Build Action" to Content

Sometimes if your are not put Ajax toolkit Manager with Global .
 
Share this answer
 
The error means what it says. The compiler cannot find the 'ShoeFun.User' class. Why do you think it should be able to ?
 
Share this answer
 
Comments
Tripat Bala Singh 23-Jan-14 2:27am    
i know i am not able to load ShoeFun.User but i dont know how to solve this type of problem in my project becoze i had created my master page in right ways but i am not getting my mistakes. plz help me.
Christian Graus 23-Jan-14 2:35am    
Well, your master page normally does not derive from a class like that ( a non Microsoft class ). So, you did something. Create a new master page, don't set any options. See what it derives from, and copy that value across.
Member 12157073 5-Dec-15 1:04am    
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddToCart.aspx.cs" Inherits="MyWebSite._AddToCart" Title="Untitled Page" %>
Another solution is: for various reasons.... you/i accidentally forgot to include that aspx and its code behind in the project. So when compiling as DLL that file is not included and that error will pop up.
 
Share this answer
 
Comments
Vincent Maverick Durano 16-Aug-18 13:55pm    
This question has been asked many years ago. Replying to old-threads like this is considered necro-posting. This brings old thread to the top. Please focus on the latest question instead.

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