Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

EPiServer Exception: PageReference string contains too many components [15_02_2008_B2B]



 We are getting this exception on one of our client sites. I have tried searching for some more information about the nature of the exception but can't find any mention here on the forum or in the EPiServer sdk. Does anyone have any pointers as to what is causing the error.

 Many thanks


Dec 04, 2008 10:14

What version of EPiServer is this? 

Looks like the pagereference is created for a remotesite named "2008_B2B", in which case the .Parse() method will fail (as it splits the string on the character '_' and reports an error if the split returns > 3 parts).

Try renaming the remotesite (if possible) to not include the '_'-character.


Dec 04, 2008 10:48
Dec 04, 2008 11:14

Hi Johan 

It is in CMS 5.

 Yes you are right it is a remote site. I will change the naming of the remote site and see if that sorts the trouble.


many thanks  for your very speedy advice.

It is greatly appreciated.


Dec 04, 2008 11:16


It could be argued whether the bug is in the remote asite admin page allowing '_'-characters in remotesite names *or* in PageReference.Parse() not handling those cases.

Thanks for bringing this to our notice! 


Dec 04, 2008 11:29
* 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.