Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load type Master Page Error

When i run my application on windows server i get below error.This application run smoothly on localhost.What is cause of the problem.

Parser Error Message: Could not load type 'KorkmazPortal.SiteMaster'.
Source Error: 

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="KorkmazPortal.SiteMaster" %>
Line 2:  
Line 3:  <%@ Register Src="UserControl/Exchange.ascx" TagName="Exchange" TagPrefix="uc" %>

Source File: /portal/Site.Master    Line: 1 
like image 454
mantissa Avatar asked Jul 31 '26 22:07

mantissa


1 Answers

Know this is an old post, but I recently hit this issue. My web setup project wasn't including the web project's library in the installed output. Once i manually copied the .dll over to the remote server, everything worked fine.

In my case the clue was that my web project worked fine locally in debug mode. Just wouldn't work when deploying remotely.

Hope this helps someone someday.

like image 100
ScottLenart Avatar answered Aug 02 '26 14:08

ScottLenart