Parser Error Message: Data at the root level is invalid. Line 1, position 1.

Discussion in 'ASP.NET 2.0' started by coryfitzdesign, Dec 8, 2008.

  1. I am unable to access my site. I can access the FTP site and reload through Visual Studio, but am trying not to do so. Any ideas?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. 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: Data at the root level is invalid. Line 1, position 1.

    Source Error:

    Line 1: <controlAdapters> <adapter controlType='System.Web.UI.WebControls.Menu' adapterType='' /> </controlAdapters> </browser></browsers>


    Source File: /App_Browsers/safari.browser Line: 1

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

    Bruce DiscountASP.NET Staff

    I think your safari.browser file is messed up. Can you post that complete file?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. this is what I can open with VS08.




    <controlAdapters> <adapter controlType='System.Web.UI.WebControls.Menu' adapterType='' /> </controlAdapters> </browser></browsers>
     
  6. Hi,
    The default browser files for the .NET framework are on your local system, look for them in the config folder.
    On your site they go in the folder: App_Browsers
    You can safely remove that folder it you are not using it or if you want to test without it.
    Salute,
    Mark






    Technical Evangelist for DiscountASP.NET
    http://www.iis7test.com/webcasts/
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx

    (Microsoft IT Usability http://msitusability.multiply.com/)
     
  7. I replaced the code in the safari file with the default and now I receive this 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: Data at the root level is invalid. Line 1, position 1.

    Source Error:

    Line 1:
    Line 2:
    Line 3: <identification>


    Source File: /App_Browsers/safari.browser Line: 1

    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
     
  8. deleting the safari file allows the site to come back!!! Thank you guys!! Does removing this app file cause any slowdown in the performance of the site with Firefox?
     
  9. Bruce

    Bruce DiscountASP.NET Staff

  10. thanks guys!!! My first semi real fix! I appreciate it...
     
  11. this is what I can get off the ftp site. Where else can I look?
     
  12. Hi,
    Where did you get the safari browser file for the .NET framework?
    I just checked the default configs and there isn't one for Safari in there.

    If you want to override that error for now you can use this generic browser:

     
  13. now I get to show my newness to building this. What file extension do I upload that to? Do I need to download from the ftp and rebuild ?
     

Share This Page