Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data at the root level is invalid. Line 1, position 1
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01117210
Message ID:
01117982
Vues:
15
>Hello My Friend! How are you doing?
>
>Alex, I have seen this error some times related to the encoding of the document. In your original message you mention that you tried to take out the encoding attribute of the Xml Declaration but this didn't help. This is because when the encoding attribute is ommited the XML parser will assume UTF-8 as default <g>
>
>So let me recommend a simple procedure for you to try to solve this problem:
>
>1) Open the Web.Config file in Notepad (I am assuming you are using Windows 2000, 2003 or XP here)
>2) Click File/Save as...
>3) In the Save As dialog, select the option UTF-8 on the drop-down "Encoding" at the bottom of the dialog
>4) Save the document with the same name, replacing the original one
>
>Remember to keep the value UTF-8 on the encoding attribute of the XML Declaration.
>
>Just for the record, this error usually occurs because when the XML parser used by the ASP.NET Framework tries to open the file it finds the BOM (Byte-Order-Mark) at the very beginning of the file. This tells it what encoding the document is saved on. When this BOM doesn't corespond with the *real* encoding of the file, it assumes that the XML file has invalid characters at its beginning. If you want to see if this document really has the BOM, try to open it with an Hexa editor (VFP HEXEdit would help here).
>
>HTH



Olá Fabio. Doing well.

I had tried what you said (it's a good idea). I had checked the beginning chars with a Hex Editor. It is UTF-8 encoded and the first line starts with 3C 3F 78 6D 6C (< ?XML) (W/O the space of course).

Still get the same error.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform