+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Parse Error

Parse Error

2 posts, 0 answered
  1. Mansoor
    Mansoor avatar
    52 posts
    Registered:
    29 Jul 2013
    09 Dec 2013
    Link to this post
    Hi,

    I just build the solution  i got below error. i could not find the solution.

    Parser Error

    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 'SitefinityWebApp.Global'.

    Source Error:


    Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="SitefinityWebApp.Global" Language="C#" %>

    Source File: /global.asax Line: 1


    Regards
    mansoor
  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    12 Dec 2013
    Link to this post
    Hello,

    The error may occur, because you haven't built  your project and such type still doesn't exist in the SitefinityWebApp dll. Another reason for this might come from the fact that you're running Sitefinity as a website, not a project. In such case the control declarations are a little different. If Sitefinity is ran as a project the control declaration looks like this:

    Copy Code
    <%@ Application Codebehind="Global.asax.cs" Inherits="SitefinityWebApp.Global" Language="C#" %>
    The control declaration in a website should contain CodeFile, instead of Codebind as an attribute:
    Copy Code
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Global.asax.cs" Inherits="SitefinityWebApp.Global"%>

    Regards,
    Vassil Vassilev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered