CS 2008.5 SP1 - Blog editor issue

CS 2008.5 SP1 - Blog editor issue

This question is answered

I'm getting the error below when I click "Insert Media" in the  Blog post editor.

I'm able to post media to Forums and Wikis. I'm running CS 2008.5 with SP1.

Thanks for the help.

 

Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[KeyNotFoundException: The given key was not present in the dictionary.]
System.ThrowHelper.ThrowKeyNotFoundException() +28
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +58
CommunityServer.Blogs.Components.WeblogApplication.GetMaximumMediaWidth() +55
CommunityServer.Controls.InsertMediaForm.DataBind() +314
CommunityServer.Controls.WrappedFormBase.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

 

Verified Answer
  • I figured it out. You need to make an update to the theme.config file in Themes/Blogs/yourThemeName. Open one of the theme.config files that shipped with SP1 and copy the <Configuration> tag at the top.

    Just before the DynamicConfiguration tag add:
    <Configuration>
        <Weblogs>
          <MediaSize maxWidth="550" maxHeight="0" maxWidthProperty="maximumMediaWidth" maxHeightProperty="maximumMediaHeight" />
        </Weblogs>
      </Configuration>

All Replies
  • I'm too.  :(

    If this is a bug of CS2008.5 SP1 ???

     

    The given key was not present in the dictionary.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    Source Error:

    Line 118:            if (themeData != null)
    Line 119:            {
    Line 120:                WeblogThemeConfiguration config = themeData.ThemeConfiguration.ApplicationConfiguration[ApplicationType.Weblog] as WeblogThemeConfiguration;
    Line 121:                if (config != null && config.MediaSize != null)
    Line 122:                    return config.MediaSize.GetMaxWidth(themeData);

    Source File: D:\CS2008.5_4.1.30912.2823.sdk\source\CommunityServer.Blogs\WeblogApplication.cs    Line: 120

    Stack Trace:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.ThrowHelper.ThrowKeyNotFoundException() +28
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +58
       CommunityServer.Blogs.Components.WeblogApplication.GetMaximumMediaWidth() in D:\CS2008.5_4.1.30912.2823.sdk\source\CommunityServer.Blogs\WeblogApplication.cs:120
       CommunityServer.Controls.InsertMediaForm.DataBind() in D:\CS2008.5_4.1.30912.2823.sdk\source\CommunityServer.Controls\Forms\InsertMediaForm.cs:169
       CommunityServer.Controls.WrappedFormBase.OnLoad(EventArgs e) in D:\CS2008.5_4.1.30912.2823.sdk\source\CommunityServer.Controls\Base\WrappedFormBase.cs:324
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Take SharePoint to new height

  • I figured it out. You need to make an update to the theme.config file in Themes/Blogs/yourThemeName. Open one of the theme.config files that shipped with SP1 and copy the <Configuration> tag at the top.

    Just before the DynamicConfiguration tag add:
    <Configuration>
        <Weblogs>
          <MediaSize maxWidth="550" maxHeight="0" maxWidthProperty="maximumMediaWidth" maxHeightProperty="maximumMediaHeight" />
        </Weblogs>
      </Configuration>

  • Thanks Trilogy  for your suggestion. It's running ok now

    Take SharePoint to new height