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

Last post 10-01-2009 6:03 PM by ITSuperman. 32 replies.

Sort Posts:

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

    08-10-2007, 1:39 AM
    • Member
      2 point Member
    • iamcrazy
    • Member since 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
    • Contributor
      2,601 point Contributor
    • guenavan
    • Member since 01-09-2004, 9:25 AM
    • Novossibirsk(S. Iberia)
    • Posts 1,235

    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 - Геннадий Ванин (Novosibirsk)
    Looking for an opportunity job

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

    04-01-2008, 7:33 AM
    • Member
      4 point Member
    • mehul.bhuva
    • Member since 10-23-2007, 9:49 AM
    • Posts 3

    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
    • Member
      7 point Member
    • Plowking
    • Member since 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
    • Member
      point Member
    • Vistabug
    • Member since 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
    • Member
      8 point Member
    • hermer
    • Member since 05-18-2004, 5:02 PM
    • Posts 4

     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
    • Participant
      1,390 point Participant
    • Sam.Dev
    • Member since 12-12-2006, 10:54 AM
    • Lahore,Pakistan
    • Posts 342

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

    05-05-2009, 8:21 AM
    • Member
      4 point Member
    • sudheer123
    • Member since 04-28-2009, 11:59 AM
    • Posts 3

    Hi Jbenisek,

    I am also facing the same error. The error description is as follows:

    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:  <browsers>
    Line 2:      <browser ID="Safari2" parentID="Safari1Plus">
    Line 3:          <controlAdapters>

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


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

    When i open the file Compat.browser i m getting the following  piece of info

    vti_encoding:SR|utf8-nl

    vti_timelastmodified:TR|13 Oct 2006 23:58:44 -0000

    vti_extenderversion:SR|12.0.0.4518

    vti_cacheddtm:TX|13 Oct 2006 23:58:44 -0000

    vti_filesize:IR|22237

    vti_backlinkinfo:VX|

    I have no clue abt the above info .  

    There are no files or directories in the _vti_pvt folder there are no sub folders or any new directories in it .

    Please help me

     

     

     

     

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

    07-01-2009, 5:42 AM
    • Member
      69 point Member
    • VijayJadhav
    • Member since 02-03-2009, 5:31 AM
    • India
    • Posts 161

    Hi,

    I had a same problem while calling SP (below) :

    ALTER PROCEDURE dbo.[usp ATI SearchStudent V1]
        @AcademicDetails NVARCHAR(20),
        @FirstName NVARCHAR(20),
        @MiddleName NVARCHAR(20),
        @LastName NVARCHAR(20),
        @Result XML OUTPUT
    AS

    BEGIN  

    DECLARE @sSQL VARCHAR(8000)
    DECLARE @sCondition NVARCHAR(20)

    SET @sCondition = ' WHERE '

    SET @sSQL = '(SELECT StudentID,
                    AcademicDetails,
                    FirstName as "PersonalDetails/FirstName",
                    MiddleName as "PersonalDetails/MiddleName",
                    LastName as "PersonalDetails/LastName" FROM tb_StudentInfo'

    IF(@AcademicDetails <> '')
    BEGIN
        SET @sSQL = @sSQL + @sCondition + ' AcademicDetails = ''' +  @AcademicDetails + ''''
        SET  @sCondition = ' AND '
    END

    IF(@FirstName <> '')
    BEGIN
        SET @sSQL = @sSQL + @sCondition + ' FirstName = ''' +  @FirstName + ''''
        SET  @sCondition = ' AND '
    END

    IF(@MiddleName <>  '')
    BEGIN
        SET @sSQL = @sSQL + @sCondition + ' MiddleName = ''' +  @MiddleName + ''''
        SET  @sCondition = ' AND '
    END

    IF(@LastName <> '')
    BEGIN
        SET @sSQL = @sSQL + @sCondition + ' LastName = ''' +  @LastName + ''''
        SET  @sCondition = ' AND '
    END

    SET @sSQL = @sSQL + ' FOR XML PATH(''Student''), ROOT(''Sis''), ELEMENTS XSINIL);'

    SET @Result = @sSQL

    --EXEC SP_EXECUTESQL @Result

    END

    Still I am looking for solution.




    "Success occurs when opportunity and preparation meet."
  • Re: Data at the root level is invalid. Line 1, position 1

    07-01-2009, 5:42 AM
    • Member
      69 point Member
    • VijayJadhav
    • Member since 02-03-2009, 5:31 AM
    • India
    • Posts 161

    Hi Experts,

    Any solution? Please help ASAP.

    Thanks.


    "Success occurs when opportunity and preparation meet."
  • Re: Data at the root level is invalid. Line 1, position 1

    07-07-2009, 10:12 AM
    • Member
      69 point Member
    • VijayJadhav
    • Member since 02-03-2009, 5:31 AM
    • India
    • Posts 161

    OK Experts,

    Here is my new Thread : http://social.msdn.microsoft.com/Forums/en-US/linqtosql/thread/850bf317-d8e9-47b2-b049-89f4078bbb1c?lc=1033.

    Where I have my complete problem definition. 

    Please reply at above post.

    Thanks.

    "Success occurs when opportunity and preparation meet."
  • Re: Data at the root level is invalid. Line 1, position 1

    07-09-2009, 3:59 PM
    • Member
      2 point Member
    • aparnak
    • Member since 07-09-2009, 7:54 PM
    • Posts 1

    Hi,

    Thankyou so much for this solution. 

    My website has many folders like images and icons etc.

    Under each there was _vti_cnf folder and each of them had the malicious web.config file.

    Once I deleted all of them, I could publish my website without any problem.Smile

    I have a doubt whether the _vti_cnf folder is required at all in the first place for the website to run Undecided

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

    07-24-2009, 12:02 PM
    • Member
      69 point Member
    • VijayJadhav
    • Member since 02-03-2009, 5:31 AM
    • India
    • Posts 161

    Hi All,

    Finally got it!

    Please check it : http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/8b1ecb8b-66d1-4b20-92b6-e31172939b7c

    Thanks.

    "Success occurs when opportunity and preparation meet."
  • Re: Data at the root level is invalid. Line 1, position 1

    08-17-2009, 2:40 PM
    • Member
      11 point Member
    • dgman
    • Member since 07-21-2009, 8:42 PM
    • Posts 10

    that change of a line is all we needed.  xmlDoc.Load() does the trick. thanks bunch.

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

    08-17-2009, 2:47 PM
    • Member
      11 point Member
    • dgman
    • Member since 07-21-2009, 8:42 PM
    • Posts 10

    iworm:

    Just try Xml.Load() function instead of Xml.LoadXml(). 

     

     

    this is the answer. perfecto!

Page 2 of 3 (33 items) < Previous 1 2 3 Next >