Try our conversational search powered by Generative AI!

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

Vote:
 

Hi

 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

 Stuart

#26401
Dec 04, 2008 10:14
Vote:
 

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.

/johan

#26403
Dec 04, 2008 10:48
Vote:
 
#26405
Dec 04, 2008 11:14
Vote:
 

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.

Stuart 

#26406
Dec 04, 2008 11:16
Vote:
 

Great!

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! 

/johan

#26408
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.