Error when deleting a referenced page

 

We're using EPiServer CMS 5 R2 SP1 and I have come across a problem i haven't had before when developing sites on EPiServer. It happens when trying to delete pages that has been referenced. Instead of getting the DeletePage I get a FormatException. Usually you get to the DeletePage where you can confirm the delete and a list with other pages which has a reference to the page if those exists.

Does anyone have the same problem and/or a solution?

Stack Trace:
[FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.]   System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) +7481133System.String.Format(IFormatProvider provider, String format, Object[] args) +107
EPiServer.UI.Edit.DeletePage.CreateReferenceList(PageReferenceCollection deleteData) +285
EPiServer.UI.Edit.DeletePage.OnLoad(EventArgs e) +609
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Regards,
Kim
#28814
Mar 23, 2009 14:26
Shahid nawaz
Member since: 2008
 

Hello Kim,

What you could do is to look at your lang files, located at :C:\Program Files\EPiServer\CMS\5.2.375.7\Application\lang, and locate the tag <reftypeshortcut> and see what value do you have for it. The corrected value in sp1 is :"Page with ID {0} links to this page or some of its descending pages".

If you have a value set to " {0} is the destination in a shortcut from {1}" then change it with the correct one as mentioned above.

I hope this will solve your issue.

Regards

Shahid
EPiServer Support Team

#28822
Mar 23, 2009 16:35
 

This did solve my problem, thank you very much!

Is the old value there by default when installing? Im trying to determine if something happened when the site was setup here.

Many thanks again!

Regards,

Kim

#28824
Mar 23, 2009 17:54
Shahid nawaz
Member since: 2008
 

Hi Kim,

I am not exactlly sure what went wrong to your installtion. But I confirmed that in R2 SP1 we have changed the value for <reftypeshortcut> as writtten earlier.  It might be possible that for some reasons during installation or upgradation to sp1 the <reftypeshortcut> holds the refference to old value.  Even I have tried to reproduce the same but I couldn't succeeded.


Regards

Shahid
EPiServer Support Team

#28921
Mar 27, 2009 8:37
rannveig.aarnes
Member since: 2006
 
Hi, I have the same problem. But I use another version of episerver: C:\Program Files\EPiServer\CMS\5.2.375.133. Here the <reftypeshortcut> has the correct value.
#29248
Apr 17, 2009 14:35
Esa Kröger
Member since: 2005
 

Hi,

we have also ran into the same problem. Same version as Rannveig's. Enviroment is 64-bit EPiServer enterprise with multiple sites and languages. Pages have been exported and imported  between sites (not sure if it matters).

Any solution for this one ?

/Esa

#32781
Sep 17, 2009 13:34
Esa Kröger
Member since: 2005
 

Well,

 this issue seems to solved by checking the languages files also from the web root folder. There may be versions with the wrong translations!

 /Esa

#32786
Sep 17, 2009 14:45