C# – Could not load type ‘WebApplication1.SiteMaster’

asp.netcmaster-pages

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 'WebApplication1.SiteMaster'.

Source Error:

Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication1.SiteMaster" %>

Line 2:
Line 3:

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

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

I can't find the error, when I publish to my localhost IIS server it works fine but when I'm publishing to my web server it gives me this error?? Can anyone help with this?

Best Answer

built and clean solution then republish it again. and also check the version of application pool of IIS on web server.

Related Topic