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

Forums / Developing with Sitefinity / Error selecting album when adding an image

Error selecting album when adding an image

4 posts, 0 answered
  1. Men
    Men avatar
    8 posts
    Registered:
    28 Mar 2014
    30 Mar 2014
    Link to this post

     Hi,

     In the Sitefinity 6 project i'm working on we are getting an error at the step where you can select an album when adding an image. http://screencast.com/t/sLZyhPLn.

     The error:

    ----------------------------------------
    ----------------------------------------
    Timestamp: 30-3-2014 19:28:37
     
    Message: HandlingInstanceID: 130e5a3d-9c2f-41e2-b505-83766042f491
    An exception of type 'System.Reflection.TargetInvocationException' occurred and was caught.
    -------------------------------------------------------------------------------------------
    03/30/2014 21:28:37
    Type : System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Exception has been thrown by the target of an invocation.
    Source : mscorlib
    Help link :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
    HResult : -2146232828
    Stack Trace :    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
       at Telerik.Sitefinity.Data.Linq.OpenAccess.OpenAccessQueryProvider`2.Execute(Expression expression)
       at Telerik.Sitefinity.Data.Linq.OpenAccess.OpenAccessQueryProvider`2.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
       at System.Linq.Queryable.Count[TSource](IQueryable`1 source)
       at Telerik.Sitefinity.Data.DataProviderBase.SetExpressions[T](IQueryable`1 query, String filterExpression, String orderExpression, Nullable`1 skip, Nullable`1 take, Nullable`1& totalCount)
       at Telerik.Sitefinity.Modules.Libraries.Web.Services.AlbumService.GetFolders(String sortExpression, Int32 skip, Int32 take, String filter, String providerName, Boolean hierarchyMode)
       at SyncInvokeGetFolders(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.MessageRpc.Process(Boolean isOperationContextSet)
     
    Additional Info:
     
    MachineName : SITEFINITY
    TimeStamp : 30-3-2014 19:28:37
    FullName : Telerik.Sitefinity.Utilities, Version=6.0.4210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/2/ROOT-1-130406321433568119
    ThreadIdentity :
    WindowsIdentity : SITEFINITY\App_TrailRunning
    Requested URL : http://www.trail-running.nl/Sitefinity/Services/Content/AlbumService.svc/folders/?provider=OpenAccessDataProvider&sortExpression=Title ASC&skip=0&take=20&filter=((Title.Contains("lo") OR (Title["nl"] = null AND Title["en"] = null AND Title[""].Contains("lo"))))
        Inner Exception
        ---------------
        Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
        Message : Object reference not set to an instance of an object.
        Source : Anonymously Hosted DynamicMethods Assembly
        Help link :
        Data : System.Collections.ListDictionaryInternal
        TargetSite : Boolean lambda_method(System.Runtime.CompilerServices.Closure, Telerik.Sitefinity.Model.Folder)
        HResult : -2147467261
        Stack Trace :    at lambda_method(Closure , Folder )
           at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
           at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
     
     
     
    Category: ErrorLog
     
    Priority: 0
     
    EventId: 90000
     
    Severity: Error
     
    Title:Enterprise Library Exception Handling
     
    Machine: SITEFINITY
     
    App Domain: /LM/W3SVC/2/ROOT-1-130406321433568119
     
    ProcessId: 2180
     
    Process Name: c:\windows\system32\inetsrv\w3wp.exe
     
    Thread Name:
     
    Win32 ThreadId:2784
     
    Extended Properties:
    ----------------------------------------
    ----------------------------------------

    Is this a known issue?

  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    02 Apr 2014
    Link to this post
    Hi,

    From your screenshot, it looks like this happens in a multilingual scenario. Would it be possible to share the exact setup you have - what languages you have added, what is the current language of the page, does it have translations, are you uploading the picture via a content block or the image widget? It looks like there is an issue with retrieving the correct library for the language.

    It would be best if you could open a ticket regarding this issue so we can provide a more prompt resolution.

    Regards,
    Atanas Valchev
    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. Men
    Men avatar
    8 posts
    Registered:
    28 Mar 2014
    12 Apr 2014 in reply to Atanas Valchev
    Link to this post

    Hi Atanas,

    Thank you for your reply. Currently we are awaiting a response from sales to extend the license. We are now not able to place tickets yet.

    Our resources config file:

    <?xml version="1.0" encoding="utf-8"?>
    <resourcesConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="6.0.4210.0" defaultCultureKey="dutch-nl" defaultBackendCultureKey="dutch-nl" multilingual="True">
        <cultures>
            <clear />
            <add culture="nl" uiCulture="nl" key="dutch-nl" />
            <add culture="en" uiCulture="en" key="english-en" />
        </cultures>
        <backendCultures>
            <clear />
            <add culture="en" uiCulture="en" key="english-en" />
            <add culture="nl" uiCulture="nl" key="dutch-nl" />
        </backendCultures>
    </resourcesConfig>

    It indeed looks like a multilingual-issue. Could it be because of the albums needs to be translated to English?

  4. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    17 Apr 2014
    Link to this post
    Hello,

    Thank you for the info.

    I have not been able to reproduce it. Would it be possible to share with me the exact steps that you take before the issue happens - what is the culture of the page that you are editing and is it the default culture?

    Regards,
    Atanas Valchev
    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
     
4 posts, 0 answered