Data at the root level is invalid. Line 1, position 1

Last post 07-08-2008 6:38 AM by Sam.Dev. 21 replies.

Sort Posts:

  • Re: Data at the root level is invalid. Line 1, position 1

    08-10-2007, 1:39 AM
    • Loading...
    • iamcrazy
    • Joined on 08-10-2007, 5:36 AM
    • Posts 1

    I have the same problem ! who can help me! I am pool in English !

  • Data at the root level is invalid. Line 1, position 1

    12-28-2007, 4:51 PM
    • Loading...
    • guenavan
    • Joined on 01-09-2004, 9:25 AM
    • Novossibirsk(S. Iberia)
    • Posts 621

    In order to investigate performance problems I downloaded the website from remote hosting.
    ASP.NET2.0+MSSQL2005 in both remote and local site.

    I could not compile it locally having
    "Data at the root level is invalid. Line 1, position 1" error
    until I deleted all _vti* files and folders (_vti_cnf\, _vti_pvt\, _vti_script\, etc.).

    Internet search shows that it is created by FPE (FrontPage Extensions) http://www.issociate.de/board/post/463236/_vti_cnf_folders.html tells:
    "ignore them, but do not remove them from your local site."

    Hummm, I am confused - where are they created and for what?
    And what about deleting them on server?

    Guennadi Vanine - Gennady Vanin - Геннадий Ванин
  • Re: Data at the root level is invalid. Line 1, position 1

    04-01-2008, 7:33 AM
    • Loading...
    • mehul.bhuva
    • Joined on 10-23-2007, 9:49 AM
    • Posts 2

    Go to C:\Inetpub\wwwroot\wss\VirtualDirectories\ find your WSS Web Application (represented by a port number), then delete an unknown folder created by sharepoint, namely vti_cnf from all the folders and sub-folders in your web application, the error disappears. It may come because we have tried to edit the WSS web application having Form based authentication, atleast in my case it got resolved by deleting this junk folder...

  • Re: Data at the root level is invalid. Line 1, position 1

    05-14-2008, 4:57 AM
    • Loading...
    • Plowking
    • Joined on 04-27-2006, 12:09 PM
    • Posts 2

    I found that if the first line of web.config does not have a space before the closing ?, I get the "data at the root level is invalid. Line 1, position 1." error. In your example you are also missing the extra space.

    <?xml version="1.0" encoding="utf-8"?> (CAUSES ERROR)

    <?xml version="1.0" encoding="utf-8" ?> (WORKS LIKE A DREAM)

     regards

     Ian
     

  • Re: Data at the root level is invalid. Line 1, position 1

    06-14-2008, 10:05 PM
    • Loading...
    • Vistabug
    • Joined on 06-15-2008, 1:44 AM
    • Posts 1

    Thanks Jbenisek for that post.

     I had the same problem, I only open my sharepoint web site with Sharepoint Designer 2007 without saving anything , and voila, everything exploded. It had nothing to do with any permissions with ASP or changes to any web.config files, I did a hard drive seach and all the date stamp on all the web.config were untouched. I must say that all theses stupid events are pushing us to the wrong side of the problem. I saw these folders created by SD 2007 when i compared with yesterday's set of backups, but I didn't care, they were only inoffensive folders... When i read your post, I removed all the scrap left by SD 2007 and everything went back to normal.

    The only lesson i had in this is to only work with copies when working with SD 2007, and basics are often the best way to go.

     Again, thanks Jbenisek, and like you said, this guy who set up this should be shot !!!

  • Re: Data at the root level is invalid. Line 1, position 1

    06-23-2008, 6:02 AM
    • Loading...
    • hermer
    • Joined on 05-18-2004, 5:02 PM
    • Posts 3

     Hi, I had the same problem as the original poster, I made the mistake of opening the website with FrontPage, removed the front page extensions and it all worked. Thanks for the pointers

  • Re: Data at the root level is invalid. Line 1, position 1

    07-08-2008, 6:38 AM
    • Loading...
    • Sam.Dev
    • Joined on 12-12-2006, 5:54 AM
    • Posts 297

    mehul.bhuva:
    ), then delete an unknown folder created by sharepoint, namely vti_cnf from all the folders and sub-folders in your web application, the error disappears.

     

    thnks worked for me

    Saima Ghumman
    --Mark the post as Answer if the Post helps you--
Page 2 of 2 (22 items) < Previous 1 2
Microsoft Communities
Page view counter