Error selecting album when adding an image
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. screencast.com/.../sLZyhPLn.
The error:
--------------------------------------------------------------------------------Timestamp: 30-3-2014 19:28:37Message: HandlingInstanceID: 130e5a3d-9c2f-41e2-b505-83766042f491An exception of type 'System.Reflection.TargetInvocationException' occurred and was caught.-------------------------------------------------------------------------------------------03/30/2014 21:28:37Type : System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Message : Exception has been thrown by the target of an invocation.Source : mscorlibHelp link : Data : System.Collections.ListDictionaryInternalTargetSite : System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)HResult : -2146232828Stack 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 : SITEFINITYTimeStamp : 30-3-2014 19:28:37FullName : Telerik.Sitefinity.Utilities, Version=6.0.4210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563AppDomainName : /LM/W3SVC/2/ROOT-1-130406321433568119ThreadIdentity : WindowsIdentity : SITEFINITY\App_TrailRunningRequested 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: ErrorLogPriority: 0EventId: 90000Severity: ErrorTitle:Enterprise Library Exception HandlingMachine: SITEFINITYApp Domain: /LM/W3SVC/2/ROOT-1-130406321433568119ProcessId: 2180Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:2784Extended Properties: --------------------------------------------------------------------------------Is this a known issue?
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
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?
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