views:

13

answers:

0

Hello All, New to the site and loving it so far.

Here's my issue in Sharepoint 2007 MOSS 2007 3.0

I've been creating custom themes for sharepoint by:

1) adding new theme folder under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\THEMES

2) updating the themes .INF file.

3) Adding the new theme in SPTHEMES.xml under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033

None of this has been a problem so far, but today I added another theme and got an unknown error when navigating to Site Settings-->Site Theme page to apply my new style. The log shows:

10/12/2010 09:57:35.74 w3wp.exe (0x0AF4) 0x0C30 Windows SharePoint Services General 8nca Verbose Application error when access /_layouts/themeweb.aspx, Error=Index was outside the bounds of the array. at Microsoft.SharePoint.ApplicationPages.ThemeWebForm.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

10/12/2010 09:57:35.74 w3wp.exe (0x0AF4) 0x0C30 Windows SharePoint Services General 8dzz High Exception Type: System.IndexOutOfRangeException Exception Message: Index was outside the bounds of the array.

This to me suggested there is a limit set somewhere in SharePoint and by adding more themes than that limit I'm getting this error. I've google around and read all the documentation I can get my hands on, but still not even a hint at what/where sets this limit.

Also, if I remove a theme from the SPTHEMES.xml file( any theme ) the error goes away and I can use my newly added theme without incedent.

Any help would be greatly appreciated

Here is the theme file:

SPTHEMES.xml