'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Currently running Umbraco 7.1.1. Everything was working fine, but suddenly I am now faced with this error on any page I go to (whether it's my active website or when attempting to access the backend control panel).
Thoughts?
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Have you used some weird characters in your document type aliases or in a content node that might be the cause of this? It should not happen but sometimes it's hard to take all the weird characters into account.
One really useful thing to do would to be to copy umbraco.config from App_Date to your local machine, then rename it umbraco.xml and open it in Firefox, this will show us which property contains the hexadecimal character. If this doesn't show anything, then you will need to use the DB query as shown by Simon in his blog post.
This was a nasty bug of the past often caused by copying and pasting from PDF content, perhaps there is one tiny way to still get in there, I hope the above will tell us more....
Jan, I had come across that article by SImon Anthony while trying to resolve this and unfortunately running the query he suggests doesn't help as apparently there is no error in the Log table.
Jeavon, this is what I got when I did what you suggested:
I just wanted to say that I found the problem... somehow the applications.config file got corrupted (I have no idea how). When opened in a text editor I was met with the screen below.
Not sure what caused it - but thanks all for the help! The suggestions gave me some direction as to how to track down the problem, even though it was a tedious process.
Hey I'm facing the same problem here. 7.0.2 everything was working fine, but suddenly I am now faced with this error on any page I go to (whether it's my active website or when attempting to access the backend control panel).
My applications.config was empty too, but even when I swiched it with a backup one- I still got the same error. any Ideas?
Any Idea?
Server Error in '/' Application.
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
etc... The logs show this info just before throwing the error:
> 2014-10-24 15:29:23,614 [6] INFO Umbraco.Core.PluginManager - [Thread
> 1] Determining hash of code files on disk 2014-10-24 15:29:23,636 [6]
> INFO Umbraco.Core.PluginManager - [Thread 1] Hash determined (took
> 12ms)
I was having connection problems to the database just before this happened. The files had been changed and looked like it was since these connectivity issues began on the 18th October 10:22.
I reverted those config files via Git and all was well again!
This mysteriously happened to my site recently as well (10/16 specifically) which is hosted on Azure Websites. The applications.config file was nulled out as shown in the screenshot earlier in the thread. Both the applications.config file and the trees.config file are timestamped as having been updated today as I look. I'm unclear what is touching these files. I'm running 7.1.6.
Experiencing this issue as well, running 6.1.5 on an azure website. Was working fine one day, next day I'm getting frantic emails from my client... What is going on?
Yes, just read through that, my application.config and tree.config files were corrupted. I replaced those and everything is up and running again, I'm just confused as to how it started in the first place.
I haven't read this whole thread, but FYI the issue with applications.config and trees.config being truncated is a known issue that has been fixed and will be released with Umbraco 7.1.9: http://issues.umbraco.org/issue/U4-5126
I have encountered it in the past, actually, but had just chalked it up to gremlins. Looks like this has been a problem for years.
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Currently running Umbraco 7.1.1. Everything was working fine, but suddenly I am now faced with this error on any page I go to (whether it's my active website or when attempting to access the backend control panel).
Thoughts?
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Hi Adam
Have you used some weird characters in your document type aliases or in a content node that might be the cause of this? It should not happen but sometimes it's hard to take all the weird characters into account.
However you should try and and see if you can fix it by following this article from Simon Anthony http://www.simonantony.net/knowledge-base/articles/error-republishing-systemxmlxmlexception-hexadecimal-value-0x01-is-an-invalid-character/
But before doing anything make sure to make a backup of the database and your files just to be safe.
Hope this helps.
/Jan
Hi Adam,
One really useful thing to do would to be to copy umbraco.config from App_Date to your local machine, then rename it umbraco.xml and open it in Firefox, this will show us which property contains the hexadecimal character. If this doesn't show anything, then you will need to use the DB query as shown by Simon in his blog post.
This was a nasty bug of the past often caused by copying and pasting from PDF content, perhaps there is one tiny way to still get in there, I hope the above will tell us more....
Jeavon
Thanks!
Jan, I had come across that article by SImon Anthony while trying to resolve this and unfortunately running the query he suggests doesn't help as apparently there is no error in the Log table.
Jeavon, this is what I got when I did what you suggested:
Hi Adam,
So Firefox is passing the xml as valid?
If you don't have any sensitive content, could you post a zip of that xml file on Dropbox or simular?
Jeavon
Hi Jeavon,
Here's a link to the xml file: http://www.endlessvortex.com/umbraco.zip
I just wanted to say that I found the problem... somehow the applications.config file got corrupted (I have no idea how). When opened in a text editor I was met with the screen below.
Not sure what caused it - but thanks all for the help! The suggestions gave me some direction as to how to track down the problem, even though it was a tedious process.
- Adam
Hi Adam,
Awesome you found that, certainly not one I've seen before!
Jeavon
Same problem here running on azure websites.. In my log file i get the message:
I also has to replace the application.config en trees.config files to get it up and running again.
Hey I'm facing the same problem here. 7.0.2 everything was working fine, but suddenly I am now faced with this error on any page I go to (whether it's my active website or when attempting to access the backend control panel).
My applications.config was empty too, but even when I swiched it with a backup one- I still got the same error. any Ideas?
Any Idea?
Server Error in '/' Application.
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
Ahh!! just saw the last post with the trees.config file!! Now its working. Thanks Marcel van Helmont!!
AvihayBit are you running umbraco also on Azure?
great that you also fixed it..
Nope. Private server. I have no idea what corrupted the files...
I have created a issue maby a core member knows the problem
issue is here: http://issues.umbraco.org/issue/U4-5336
Same problem here, and looks like the same cause as Marcel van Helmont's post described (corrupted trees.config and applications.config).
I started seeing:
I opened the config/applications.config and config/trees.config files in Sublime and it was just:
etc... The logs show this info just before throwing the error:
I was having connection problems to the database just before this happened. The files had been changed and looked like it was since these connectivity issues began on the 18th October 10:22.
I reverted those config files via Git and all was well again!
This mysteriously happened to my site recently as well (10/16 specifically) which is hosted on Azure Websites. The applications.config file was nulled out as shown in the screenshot earlier in the thread. Both the applications.config file and the trees.config file are timestamped as having been updated today as I look. I'm unclear what is touching these files. I'm running 7.1.6.
Experiencing this issue as well, running 6.1.5 on an azure website. Was working fine one day, next day I'm getting frantic emails from my client... What is going on?
Hi Joseph
It's probably caused by a weird character in the content somewhere, which makes it break.
Have you tried following the advices mentioned on the first page of this thread?
Make sure to read what Marcel writes about the application.config file and trees.config file on Azure.
/Jan
Yes, just read through that, my application.config and tree.config files were corrupted. I replaced those and everything is up and running again, I'm just confused as to how it started in the first place.
Hi Joseph
Ah ok, yeah I'm not sure what the cause is. I have not been using Azure myself yet.
/Jan
I haven't read this whole thread, but FYI the issue with applications.config and trees.config being truncated is a known issue that has been fixed and will be released with Umbraco 7.1.9: http://issues.umbraco.org/issue/U4-5126
I have encountered it in the past, actually, but had just chalked it up to gremlins. Looks like this has been a problem for years.
For me this occurred and was the applications.config file that became corrupted.
Looking at the logs on the server it seems the file was in use/memory when the server crashed and caused it to become corrupt.
is working on a reply...