penmas penmas - 1 month ago 15
ASP.NET (C#) Question

Parse Error, On Site.MasterClass, Could Not Load Type

I am getting a parsing error on the

Inherets = Site.MasterClass
. I am not entirely understanding what I need to updated in order for this error to go away. The entire site project worked excellent in Microsoft Visual Studios, it is just when I am trying to migrate the project via FTP that I am getting this error. Could it be the folder structure within the site that is causing the issue? Even when I change the folder's name from 'Across America' to "WingtipToys" I still get the same error.


Parser Error Message: Could not load type 'WingtipToys.SiteMaster'.

Source Error:

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

Source File: /mydirectory/across-america/Site.Master Line: 1

Answer

Seems like you ware copied the master from somewhere else, As it says Inherits="WingtipToys.... if it is so then your master page will be under WingtipToys directory but the source says that it belongs to across-america. So the Inherits="WingtipToys.SiteMaster" %> should be like this :

Inherits="across-america.SiteMaster" %>