Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

json serialization error on initialization


I have an error that has just started to occur recently on an episerver site i am working on. When i try to browse to any page i get the following error:

Error reading string. Unexpected token: StartArray. Path '', line 1, position 1.

the error is occuring when i try to get the site start page from the content loader in an initialization module, this is the code where it breaks down:

var startPageLink = ContentReference.StartPage;
if (ContentReference.IsNullOrEmpty(startPageLink))

var startPage = context.Locate.ContentLoader().Get(startPageLink);

From what i can tell episerver is strugling to read json data because it is either empty or in an unexpected format.

Has anyone experiecned this issue before? I'd really appreciate some help in resolving it



Oct 25, 2017 10:45

I am facing the same issue and I cannot find anything helpful in the internet. 

Is there anybody who has solved it, or did Sam solve it?


Jul 12, 2018 15:59

What is in your start page model?

Jul 12, 2018 20:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.