我正在运行我的应用程序并得到此错误

时间:2015-03-01 14:50:54

标签: asp.net

代码:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="UserManagement.aspx.cs" Inherits="TestAutomationAccelerator.UserMangaement" %>

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 'TestAutomationAccelerator.UserManagement'.

来源错误:

    Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManagement.aspx.cs" Inherits="TestAutomationAccelerator.UserManagement" %>
    Line 2:  
    Line 3:  <!DOCTYPE html>


    Source File: /UserManagement.aspx   Line: 1 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

1 个答案:

答案 0 :(得分:2)

您的课程名为UserMangaement,但您的网页指示会被告知找到课程UserManagement。注意不同的拼写。您需要使它们匹配,以便找到正确的路径。

在在Stack Overflow上发布问题之前,请务必验证此类之类的明显内容。如果它说它无法加载某种类型,那么请验证该类型是否存在。