MasterPage Error (Parser) Could not load type 'filename'

Last post 10-08-2009 5:32 AM by akhi4akhil. 3 replies.

Sort Posts:

  • MasterPage Error (Parser) Could not load type 'filename'

    03-16-2009, 9:44 AM
    • Member
      6 point Member
    • dt86uk
    • Member since 03-16-2009, 1:29 PM
    • Newcastle upon Tyne, England
    • Posts 13

     Hello everyone,

    This is my first post and i'm a beginner at Visual Studio. After plenty research im aware that this problem is a persistant one in many instances, just not one as similar as mine. So far I've been developing my Web Site and when I have gone to view my web site (Ctrl+F5) i'm presented with the following error. Of which i have no idea what it means as the file IS actually there, im baffled.

     Additional Info: I'm using Visual Studio 2008 and its being coded in C#

     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 'where2Party.Master'.

    Source Error:

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

    Source File: /Where2Party/where2party.Master    Line: 1


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    I haven't failed. I've just found 10,000 that don't work.
  • Re: MasterPage Error (Parser) Could not load type 'filename'

    03-16-2009, 10:13 AM
    • Star
      8,515 point Star
    • Steelymar
    • Member since 01-28-2009, 9:39 AM
    • Bulgaria
    • Posts 1,257

    Try to run your application with F5 only... this will start the debugger and you will receive more detail info about error.

    Regards,
    Stefan Uzunov
  • Re: MasterPage Error (Parser) Could not load type 'filename'

    03-16-2009, 10:18 AM
    Answer
    • Contributor
      4,135 point Contributor
    • joydeepsen
    • Member since 07-17-2008, 10:25 AM
    • Posts 789

    hi dt86uk ,

    Rahter than Inherits="where2Party.Master" use Inherits="where2Party"

    Joydeep Sen
    Dotnet Developer

    Dont forget to click “Mark as Answer” on the post that helped you.
    This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers


  • Re: MasterPage Error (Parser) Could not load type 'filename'

    10-08-2009, 5:32 AM
    • Member
      30 point Member
    • akhi4akhil
    • Member since 07-14-2009, 3:36 AM
    • Cochin
    • Posts 16

    Try deleting the code file and delete the reference of the codefile and the ClassName from the masterpage code. Will look as below.

     

    <%

    @ Master Language="C#" AutoEventWireup="true" %>

     

     

     

    Regards

    Akhil

    Regards,
    Akhil
    Mark as Answer if found helpfull.
Page 1 of 1 (4 items)