473,791 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data at the root level is invalid

106 New Member
Hi I get the following error


Server Error in '/teachnetwork' 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: <browsers>
Line 2:
Line 3: <browser refID="Default" >


Source File: /teachnetwork/App_Browsers/Form.browser Line: 1
The site is working fine on my local system but i get the error on server.

Any Help Please Thanks in advance
Sep 17 '08 #1
3 3301
nateraaaa
663 Recognized Expert Contributor
Please post all of the code for the file you are getting an error in. I think it may be an XML tag is not matching but without seeing the entire file I can't be sure of that.

thanks
Nathan
Sep 17 '08 #2
Plater
7,872 Recognized Expert Expert
If the first line in your file is:
<browsers>
You already have a problem.

An example of my first two lines are:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE doc SYSTEM "doc.dtd">
  2. <?xml-stylesheet type="text/xsl" href="doc.xsl" ?>
  3.  
Sep 17 '08 #3
Hamayun Khan
106 New Member
Thanks for reply.

The site was working fine but yesterday I get this error. file has the following code.

Expand|Select|Wrap|Line Numbers
  1. <%
  2. <browsers>
  3.  
  4.   <browser refID="Default">
  5.     <controlAdapters>
  6.       <adapter controlType="System.Web.UI.HtmlControls.HtmlForm"
  7.                adapterType="FormRewriterControlAdapter" />
  8.     </controlAdapters>
  9.   </browser>
  10.  
  11. </browsers>
  12. %>
  13.  
I delete the file from my server and now my site is working fine. I don't know the function of this file.
Sep 18 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5938
by: Korivo | last post by:
Im getting this error while trying to read a xml file that i receive from a POST heres the code: Dim MyXmlReader As XmlTextReader Dim strNodeResult As String Dim NodeType As XmlNodeType Dim objwriter As StreamWriter
1
1734
by: jm | last post by:
I get "data at the root level is invalid." I have changed security for the IUSR_xx to be in the adminstrators (tried anonymous access); changed all the file security I could; tried virtual directories and file paths. I have googled and googled. Any ideas why it cannot load this file? It is not the files, I believe, I didn't make them they are from 4guysfromrolla. Any ideas what is causing this bug? Thanks for any help. ...
1
1827
by: Alan Wang | last post by:
Hi there, I got this message ("The data at the root level is invalid. Line 1, position 1.") when I moved the application from my workstation to Windows 2003 web server. But the wired thing the whole application works fine on my workstation which running Windows xp prof sp 2 edition. Please help me out Thanks
2
5495
by: yxq | last post by:
Hello I want to create and delete the folder share, i found that it is ok for generic folder, but it does not work for Root directory(i.e c:\, d:\) The code **************************************************** Dim mc As New ManagementClass("Win32_Share") Dim mo As ManagementObject Dim inParams As ManagementBaseObject Dim outParams As ManagementBaseObject
1
1763
by: jm | last post by:
I get "data at the root level is invalid." I have changed security for the IUSR_xx to be in the adminstrators (tried anonymous access); changed all the file security I could; tried virtual directories and file paths. I have googled and googled. Any ideas why it cannot load this file? It is not the files, I believe, I didn't make them they are from 4guysfromrolla. Any ideas what is causing this bug? Thanks for any help. ...
9
6653
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its length is 642 bytes ( I have appended it to the end of this message). I suspect that the reason may have something to do with an incorrect declaration of which class to de-serialize to. In the attached code I substituted @@@@@@@ in the code below with...
2
10054
by: =?Utf-8?B?am1ncm8=?= | last post by:
I created a web service in visual studio 2003, tested it with a sample.xml file from a vendor we are using, and it worked exactly like it should. I depoloyed it to our server, created a project calling the webservice with the sample.xml file, and again it worked. Now the vendor is calling the web service from their application and receiving the following error, and stating that there is something with the Web Service or the SOAP Client...
1
4811
by: =?Utf-8?B?am1ncm8=?= | last post by:
I created a web service in visual studio 2003, tested it with a sample.xml file from a vendor we are using, and it worked exactly like it should. I deployed it to our server, created a project using the webservice with the sample.xml file, and again it worked. Now the vendor is calling the web service from their application and receiving the following error, and stating that there is something with the Web Service or the SOAP Client on...
4
8170
by: johnsonkt | last post by:
hi all , when m trying to validate my xml using xsd file it gives me the following error "Data at the root level is invalid. Line 1, position 1" i tried to open the XML file using IE and there are no errors and there are no blank space before the root element.the xml is created dynamically and it is send as a string to validate. the dynamically generated xml string is the following. <?xml version="1.0" encoding="utf-8" ?> ...
2
3231
by: Cirene | last post by:
My ASP.NET project builds fine (VS2008). I added a new web deployment project. When I try to build it I get: Data at the root level is invalid. Line1, position 1. (The file is web.config, line 1, column 1, in my deploy project.) I double click on the error and it shows this... vti_encoding:SR|utf8-nl vti_timelastmodified:TR|09 May 2008 01:16:09 -0000
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.