I suggest you ...

Take a look at MultiView exception when you enable Page inspector in VS2011

The error is:

MultiView cannot have children of type 'TracedLiteralControl'. It can only have children of type View.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: MultiView cannot have children of type 'TracedLiteralControl'. It can only have children of type View.

Source Error:

Line 7: </hgroup>
Line 8:
Line 9: <asp:MultiView ActiveViewIndex="0" runat="server">
Line 10: <asp:View runat="server"><p>Drekavac</p></asp:View>
Line 11: </asp:MultiView>

Source File: C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\About.aspx Line: 9

Stack Trace:

[HttpException (0x80004005): MultiView cannot have children of type 'TracedLiteralControl'. It can only have children of type View.]
System.Web.UI.WebControls.MultiView.AddParsedSubObject(Object obj) +1752346
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +10
ASP.about_aspx.__BuildControl__control2() in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\About.aspx:9
ASP.about_aspx.__BuildControlBodyContent(Control __ctrl) in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\About.aspx:3
System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +10
System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +82
ASP.site_master.__BuildControlMainContent() in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\Site.master:57
ASP.site_master.__BuildControl__control11() in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\Site.master:15
ASP.site_master.__BuildControlTree(site_master __ctrl) in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\Site.master:1
ASP.site_master.FrameworkInitialize() in C:\Users\srdjo\Documents\Visual Studio 11\WebSites\MCPortal2\Site.master.vb:912308
System.Web.UI.UserControl.InitializeAsUserControlInternal() +32
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +655
System.Web.UI.Page.get_Master() +54
System.Web.UI.Page.ApplyMasterPage() +14
System.Web.UI.Page.PerformPreInit() +45
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335

6 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Jim Ginhio commented  ·   ·  Flag as inappropriate

        Similar message using an ACT Tab Container (but not with Page Inspector, just a normal debug):

        TabContainer cannot have children of type 'Microsoft.VisualStudio.Web.Runtime.WebForms.TracedLiteralControl'.

      • Anonymous commented  ·   ·  Flag as inappropriate

        We actually had found this bug before, but unfortunately didn't have time to fix it for Beta. We will be fixing it for the next VS release, I apologize for the inconvenience.

      Feedback and Knowledge Base