Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load type 'WebApplication1.SiteMaster'

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?

like image 269
Slobodan Jovanovski Avatar asked Nov 11 '22 20:11

Slobodan Jovanovski


1 Answers

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

like image 141
wajahat umar Avatar answered Nov 14 '22 21:11

wajahat umar