Exactly right. I upgraded a project, had it working perfectly, but couldn't publish it. That spurious _vti_cnf\web.config was there. Getting rid of it fixed my problem straight away. Thanks for the tip.
Blessings,
James Hippolite
Senior Developer - Microsoft Technologies
Workgroup Solutions Team - Shared Capability
Telecom New Zealand Limited
Wellington, New Zealand
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.210
[HttpParseException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.Configuration.BrowserCapabilitiesCodeGenerator.ProcessBrowserFiles(Boolean useVirtualPath, String virtualDir)
at System.Web.Compilation.ApplicationBrowserCapabilitiesCodeGenerator.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.ApplicationBrowserCapabilitiesBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
[HttpParseException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BrowserCapabilitiesCompiler.GetBrowserCapabilitiesType()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
[HttpException]: Data at the root level is invalid. Line 1, position 1.
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)
[HttpException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Also getting this
Event Type: Failure Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date: 3/29/2007
Time: 1:00:03 PM
User: *****\wss3pooldemo
Computer: *****Description:
Object Open:
Object Server: SC Manager
Object Type: SERVICE OBJECT
Object Name: WinHttpAutoProxySvc
Handle ID: -
Operation ID: {0,19961704}
Process ID: 840
Image File Name: C:\WINDOWS\system32\services.exe
Primary User Name: BLYSERVER$
Primary Domain: *****
Primary Logon ID: (0x0,0x3E7)
Client User Name: wss3pooldemo
Client Domain: *****
Client Logon ID: (0x0,0x12E8C23)
Accesses: Query status of service
Start the service
Query information from service
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user BLYTHEDESIGN\wss3pooldemo SID (S-1-5-21-4239727938-222710763-1804924817-1486). This security permission can be modified using the Component Services administrative tool.
I would like to meet the person that made this part of the system work as it does. I fixed this error I would think many people might have this over time.
Idea of what could be the issues was only found here.
In doing some editting on the intranet site which is WSS v3 I openned a file called web.config from the c:\inetpub\wwwroot\wss\virutaldirectories\80
ok so no big deal didn't edit the file or change anything. I openned the file with SharePoint Designer after I did this I remembered I needed to work in these files in Virtual web designer and not sharepoint designer ok my bad didn't save anything seems
stupid but I didn't give it a thought.
Just openning the file seems to be enough to have the system create a sub folder called _vti_pvt or something like that. In trouble shoot this error I openned a few files and it created this folder and made a copy of each file I openned and put it in a sub folder
with the same name I found 6 of these folders all new. I guess this file is not a true xml file and made the whole site crash for 2 hours.
I deleted these directories and everything worked right away.
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?
Gennady Vanin (Novosibirsk) -- Геннадий Ванин (Новосибирск) -- Guennadi Vanine
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...
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.
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 !!!
James_Hippol...
Member
10 Points
2 Posts
Re: Data at the root level is invalid. Line 1, position 1
Oct 06, 2006 01:09 AM|LINK
James Hippolite
Senior Developer - Microsoft Technologies
Workgroup Solutions Team - Shared Capability
Telecom New Zealand Limited
Wellington, New Zealand
Jbenisek
Member
2 Points
1 Post
Re: Data at the root level is invalid. Line 1, position 1
Mar 29, 2007 08:48 PM|LINK
I just started getting this. Didn't do anything I know of. I have verified this file is there and works. Looked in side of it.
Wss 3.0 has been running great until 11:00am today, didn't change anything.
Line 1, position 1 looks like this in the document
<browsers>
<browser id="Safari2" parentID="Safari1Plus">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu"
adapterType="" />
What am I missing here? Please Help
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:
Source File: /App_Browsers/compat.browser Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
[HttpParseException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.Configuration.BrowserCapabilitiesCodeGenerator.ProcessBrowserFiles(Boolean useVirtualPath, String virtualDir)
at System.Web.Compilation.ApplicationBrowserCapabilitiesCodeGenerator.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.ApplicationBrowserCapabilitiesBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
[HttpParseException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BrowserCapabilitiesCompiler.GetBrowserCapabilitiesType()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
[HttpException]: Data at the root level is invalid. Line 1, position 1.
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)
[HttpException]: Data at the root level is invalid. Line 1, position 1.
at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Also getting this
Event Type: Failure Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date: 3/29/2007
Time: 1:00:03 PM
User: *****\wss3pooldemo
Computer: *****Description:
Object Open:
Object Server: SC Manager
Object Type: SERVICE OBJECT
Object Name: WinHttpAutoProxySvc
Handle ID: -
Operation ID: {0,19961704}
Process ID: 840
Image File Name: C:\WINDOWS\system32\services.exe
Primary User Name: BLYSERVER$
Primary Domain: *****
Primary Logon ID: (0x0,0x3E7)
Client User Name: wss3pooldemo
Client Domain: *****
Client Logon ID: (0x0,0x12E8C23)
Accesses: Query status of service
Start the service
Query information from service
Privileges: -
Restricted Sid Count: 0
Access Mask: 0x94
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
and this one
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1310
Date: 3/29/2007
Time: 1:06:42 PM
User: N/A
Computer: *****
Description:
Event code: 3006
Event message: A parser error has occurred.
Event time: 3/29/2007 1:06:42 PM
Event time (UTC): 3/29/2007 7:06:42 PM
Event ID: 45e791819dd04c249a7e269ddc530641
Event sequence: 1
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1032202749/Root-7-128196688021727606
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\80\
Machine name: *****
Process information:
Process ID: 3804
Process name: w3wp.exe
Account name: *****\dealer
Exception information:
Exception type: HttpException
Exception message: Data at the root level is invalid. Line 1, position 1.
Request information:
Request URL: http://*****/it/_vti_bin/lists.asmx
Request path: /it/_vti_bin/lists.asmx
User host address: 172.16.1.98
User:
Is authenticated: False
Authentication Type:
Thread account name: *****\dealer
Thread information:
Thread ID: 1
Thread account name: *****\dealer
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.
Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
Date: 3/29/2007
Time: 1:00:02 PM
User: *****\wss3pooldemo
Computer: *****
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user BLYTHEDESIGN\wss3pooldemo SID (S-1-5-21-4239727938-222710763-1804924817-1486). This security permission can be modified using the Component Services administrative tool.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Solution
I would like to meet the person that made this part of the system work as it does. I fixed this error I would think many people might have this over time.
Idea of what could be the issues was only found here.
http://forums.asp.net/thread/1270047.aspx
In doing some editting on the intranet site which is WSS v3 I openned a file called web.config from the c:\inetpub\wwwroot\wss\virutaldirectories\80
ok so no big deal didn't edit the file or change anything. I openned the file with SharePoint Designer after I did this I remembered I needed to work in these files in Virtual web designer and not sharepoint designer ok my bad didn't save anything seems stupid but I didn't give it a thought.
Just openning the file seems to be enough to have the system create a sub folder called _vti_pvt or something like that. In trouble shoot this error I openned a few files and it created this folder and made a copy of each file I openned and put it in a sub folder with the same name I found 6 of these folders all new. I guess this file is not a true xml file and made the whole site crash for 2 hours.
I deleted these directories and everything worked right away.
The person that set this up should be shot.
epeji1101
Member
2 Points
1 Post
Re: Data at the root level is invalid. Line 1, position 1
May 23, 2007 07:02 AM|LINK
iworm
Member
2 Points
1 Post
Re: Data at the root level is invalid. Line 1, position 1
Jul 12, 2007 04:08 AM|LINK
Just try Xml.Load() function instead of Xml.LoadXml().
pelegk2
Member
170 Points
72 Posts
Re: Data at the root level is invalid. Line 1, position 1
Jul 25, 2007 08:43 PM|LINK
great!
Xml.LoadXml(). solved me the problem thanks
but where is the diffrence?
iamcrazy
Member
2 Points
1 Post
Re: Data at the root level is invalid. Line 1, position 1
Aug 10, 2007 05:39 AM|LINK
I have the same problem ! who can help me! I am pool in English !
guenavan
Contributor
4306 Points
1695 Posts
Data at the root level is invalid. Line 1, position 1
Dec 28, 2007 08:51 PM|LINK
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?
mehul.bhuva
Member
4 Points
3 Posts
Re: Data at the root level is invalid. Line 1, position 1
Apr 01, 2008 11:33 AM|LINK
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...
Plowking
Member
7 Points
2 Posts
Re: Data at the root level is invalid. Line 1, position 1
May 14, 2008 08:57 AM|LINK
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
Vistabug
0 Points
1 Post
Re: Data at the root level is invalid. Line 1, position 1
Jun 15, 2008 02:05 AM|LINK
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 !!!