Try Now
More in this section

Forums / General Discussions / Error in the default.browser file

Error in the default.browser file

2 posts, 0 answered
  1. Casey Workman
    Casey Workman avatar
    5 posts
    07 May 2010
    15 Apr 2011
    Link to this post
    After the Microsoft patch last night our production web site is currently down.  Here is the error message that we are receiving.

    Event code: 3006 
    Event message: A parser error has occurred. 
    Event time: 4/15/2011 8:46:31 AM 
    Event time (UTC): 4/15/2011 1:46:31 PM 
    Event ID: b59a33c6580542b6b5a2b25e89128e45 
    Event sequence: 1 
    Event occurrence: 1 
    Event detail code: 0 
    Application information: 
        Application domain: /LM/W3SVC/896362/Root-1-129473487809820404 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: [wwwpath]
        Machine name: ORION 
    Process information: 
        Process ID: 6408 
        Process name: w3wp.exe 
    Exception information: 
        Exception type: HttpException 
        Exception message: Invalid element 'defaultBrowser' in the application browser file, this element can only be used in a machine level browser file. (D:\inetpub\wwwroot\App_Browsers\Default.browser line 117) 
    Request information: 
        Request URL: http://murraystate.edu/Default.aspx 
        Request path: /Default.aspx 
        User host address:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Thread information: 
        Thread ID: 1 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
       at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    Custom event details: 

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    18 Apr 2011
    Link to this post
    Hello Casey,

    It looks like you have changed the following file

    Its default content is shown below

    <?xml version='1.0' encoding='utf-8'?>
      <browser refID="Default">
          <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" />
          <adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" />
      <browser id="W3C_Validator" parentID="default">
          <userAgent match="^W3C_Validator" />
          <capability name="browser" value="W3C Validator" />
          <capability name="ecmaScriptVersion" value="1.2" />
          <capability name="javascript" value="true" />
          <capability name="supportsCss" value="true" />
          <capability name="tables" value="true" />
          <capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" />
          <capability name="w3cdomversion" value="1.0" />

    but the error is thrown on line 117.
    The Default browser definition is inherited by many other browser definitions, so it looks like that there is some restriction from a parent configuration.

    All the best,
    Ivan Dimitrov
    the Telerik team

2 posts, 0 answered