# '.', hexadecimal value 0x00, is an invalid character. Line 1

**URL:** <https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129>\
**Category:** Questions\
**Tags:** extending\
**Created:** [May 29, 2026, 10:32am UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129 "2026-05-29T10:32:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinx](https://forum.umbraco.com/user_avatar/forum.umbraco.com/martinx/32/5634_2.png) [@martinx](https://forum.umbraco.com/u/martinx)\
**Post date:** [May 29, 2026, 10:32am UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129/1 "2026-05-29T10:32:08Z")

</div>

hi, i got the following error . i don’t know how to fix it.  
i found older articel about this issue. but nothing helps.

’ve suddenly started getting this error out of the blue.  
Everything was working fine on Tuesday, but since yesterday, I’ve been receiving this error. I’ve already excluded the last two articles from the CMS and added a new one.  
I’ve checked the applications and tree configuration.  
However, I still can’t figure out where the error is coming from.  
I also can’t make heads or tails of the error message—specifically “Line 1, position 508596”—to pinpoint exactly where the issue is located.

Server Error in ‘/’ Application.

* * *

## _‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 508596._

\*\*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 508596.

XmlException: ‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 508596.]  
System.Xml.XmlTextReaderImpl.Throw(Exception e) +89  
System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos) +55  
System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32& outStartPos, Int32& outEndPos) +1103  
System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type) +100  
System.Xml.XmlTextReaderImpl.ParseElementContent() +318  
System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) +1259  
System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved) +305  
System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules) +407  
System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt) +170  
System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) +113  
System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) +227  
System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XmlWriter results) +85  
Infragistics.Web.UI.GridControls.GridRenderer.RenderContents(HtmlTextWriter writer) +1334  
Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +226  
Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.Render(HtmlTextWriter writer) +24  
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80

---

<div class="post-metadata">

**Author:** ![justin-nevitech](https://forum.umbraco.com/user_avatar/forum.umbraco.com/justin-nevitech/32/6219_2.png) [@justin-nevitech](https://forum.umbraco.com/u/justin-nevitech)\
**Post date:** [May 29, 2026, 9:29pm UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129/2 "2026-05-29T21:29:40Z")

</div>

Hi @martinx

Welcome to the forum!

That `0x00` error means a NUL character has been written into an XML file - it’s illegal in XML, so the parser throws an exception the moment it hits position 508596. From the call stack, I assume your site is running Umbraco 7?

One thing though - your stack trace doesn’t point at Umbraco’s own rendering. It’s `Infragistics.Web.UI.GridControls.GridRenderer` running an XSLT transform, so the corrupt XML looks like it’s the data source for an Infragistics grid rather than `umbraco.config`. Is this on the public site or a custom backoffice page?

Quickest way to confirm is to open the suspect XML in Notepad++ (with the Hex-Editor plugin) or VS Code and search for a null byte. That tells you exactly which file is bad. You may be able to look at file modified times to see if anything correlates with the issue starting yesterday.

I hope that helps.

Justin

---

<div class="post-metadata">

**Author:** ![martinx](https://forum.umbraco.com/user_avatar/forum.umbraco.com/martinx/32/5634_2.png) [@martinx](https://forum.umbraco.com/u/martinx)\
**Post date:** [June 1, 2026, 10:47am UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129/3 "2026-06-01T10:47:39Z")

</div>

> [@justin-nevitech](#):
>
> position 508596

```auto

```

Hi Justin, thanks—I was able to resolve the problem.  
It really did turn out to be data records coming from a database and being displayed in the Infragistics grid.  
I had been looking for the error in the CMS and in the specific article content.  
However, the issue lay with corrupted data records. The error occurred at position 508,596.  
That wasn’t particularly helpful, of course. Furthermore, I couldn’t inspect any XML, since the data records were bound directly to the grid.  
Thanks a lot for helping me think through the possibilities!

```auto

```

---

<div class="post-metadata">

**Author:** ![justin-nevitech](https://forum.umbraco.com/user_avatar/forum.umbraco.com/justin-nevitech/32/6219_2.png) [@justin-nevitech](https://forum.umbraco.com/u/justin-nevitech)\
**Post date:** [June 1, 2026, 10:49am UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129/4 "2026-06-01T10:49:43Z")

</div>

> [@martinx](#):
>
> Thanks a lot for helping me think through the possibilities!

Hi @martinx

Glad you got to the bottom of it and my reply helped!

Justin

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [July 31, 2026, 10:50am UTC](https://forum.umbraco.com/t/hexadecimal-value-0x00-is-an-invalid-character-line-1/8129/5 "2026-07-31T10:50:35Z")

</div>

Closed on July 31, 2026, 10:50am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
