asp.netc#-4.0webpublishparsing-error

Server Error in '/' Application


i want to publish my site on server but i am getting this type of 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 'egenc.SiteMaster'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="egenc.SiteMaster" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Source File: /egenc/Site.Master    Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 

Don't know whats going wrong with it ? How can i solve this error.


Solution

  • I believe it's a typo and it should look like this:

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="egenc.master.Site" %>
    

    That is if you didn't mess with the directive or class name...