+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ThumbnailService.svc bug - KeyNotFoundException

ThumbnailService.svc bug - KeyNotFoundException

3 posts, 0 answered
  1. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    Registered:
    01 Jun 2015
    20 Nov 2015
    Link to this post

    Getting this bug in my error logs when something is calling out to the ThumbnailService.svc:

     

    ----------------------------------------
    Timestamp: 11/20/2015 4:49:25 PM

    Message: HandlingInstanceID: efe8d823-63cf-41ef-9abb-13e7d92f2746
    An exception of type 'System.Collections.Generic.KeyNotFoundException' occurred and was caught.
    -----------------------------------------------------------------------------------------------
    11/20/2015 11:49:25
    Type : System.Collections.Generic.KeyNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : The given key was not present in the dictionary.
    Source : mscorlib
    Help link :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : TValue get_Item(TKey)
    HResult : -2146232969
    Stack Trace :    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Telerik.Sitefinity.Modules.Libraries.Web.Services.WcfThumbnailProfile..ctor(ThumbnailProfileConfigElement config, String libraryType)
       at Telerik.Sitefinity.Modules.Libraries.Web.Services.ThumbnailService.<>c__DisplayClass4.<GetThumbnailProfiles>b__2(ThumbnailProfileConfigElement s)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
       at lambda_method(Closure )
       at System.Linq.EnumerableExecutor`1.Execute()
       at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
       at System.Linq.Queryable.Count[TSource](IQueryable`1 source)
       at Telerik.Sitefinity.Modules.Libraries.Web.Services.ThumbnailService.GetThumbnailProfiles(String libraryType, String filter, String viewType)
       at SyncInvokeGetThumbnailProfiles(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    Additional Info:

    MachineName : MyMachine
    TimeStamp : 11/20/2015 4:49:25 PM
    FullName : Telerik.Sitefinity.Utilities, Version=8.0.5700.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/4/ROOT-5-130925107910801850
    ThreadIdentity :
    WindowsIdentity : MYDOMAIN\MyUserName
    Requested URL : http://localhost:60877/Sitefinity/Services/ThumbnailService.svc/thumbnail-profiles/?libraryType=Telerik.Sitefinity.Libraries.Model.Album


    Category: ErrorLog

    Priority: 0

    EventId: 90000

    Severity: Error

    Title:Enterprise Library Exception Handling

    Machine: MyMachine

    App Domain: /LM/W3SVC/4/ROOT-5-130925107910801850

    ProcessId: 9096

    Process Name: C:\Program Files (x86)\IIS Express\iisexpress.exe

    Thread Name:

    Win32 ThreadId:4504

    Extended Properties:
    ----------------------------------------

     

    Let me know if you need any more details.

  2. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    Registered:
    01 Jun 2015
    20 Nov 2015
    Link to this post
    Got a 50# (don't remember if it was 500, or 505) server exception trying to post this error. Looks like it went through and I double posted.
  3. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    16 Mar
    Link to this post
    Hello,

    The problem is that a thumbnail profile settings are not correct for one thumbnail profile go to: Administration->Settings->Advanced->Libraries->Images->Thumbnails and for each profile check the value of textboxResize Method. The supported resize methods by default are listed here.

    Regards,
    Stanislav Velikov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
3 posts, 0 answered