We're also testing within a Web Blocks environment as well... With 6.2 which would be the correct way to access the url picker properties. We're running into issues and are trying to isolate where the problem is:
below is here error info we are seeing on two different modules:
module #1
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'uComponents.DataTypes.UrlPicker.Dto.UrlPickerState.Deserialize(string)' has some invalid arguments at CallSite.Target(Closure , CallSite , Type , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , Type , Object ) at ASP.PageViewsPartialsFeaturedSliderItemcshtml.Execute() in c:\inetpub\wwwrootcms_wb3\Views\Partials\FeaturedSliderItem.cshtml:line 7 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at WebBlocks.Views.RenderingEngines.PartialViewRenderingEngine.Render(HtmlHelper html)
module #2
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'uComponents.DataTypes.UrlPicker.Dto.UrlPickerState.Deserialize(string)' has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at CallSite.Target(Closure , CallSite , Type , Object )
at ASP.PageViewsPartialsFeaturedMemberResourceItemcshtml.Execute() in c:\inetpub\wwwrootcms_wb3\Views\Partials\FeaturedMemberResourceItem.cshtml:line 8
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
at WebBlocks.Views.RenderingEngines.PartialViewRenderingEngine.Render(HtmlHelper html)
uComponents compatibility with Umbraco 6.2?
We're also testing within a Web Blocks environment as well... With 6.2 which would be the correct way to access the url picker properties. We're running into issues and are trying to isolate where the problem is:
OR
var urlPicker = uComponents.DataTypes.UrlPicker.Dto.UrlPickerState.Deserialize(CurrentBlock.resourceTargetURL); var urlPickerLink = urlPicker.Url; var urlPickerLinkTarget = urlPicker.NewWindow ? " target=\"_blank\"" : String.Empty;
@CurrentBlock.resourceTitle
I also noticed in a macro partial I used to be able to a typed media item url like:
but in Umbraco 6.2 now have to access it like:
below is here error info we are seeing on two different modules:
module #1
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'uComponents.DataTypes.UrlPicker.Dto.UrlPickerState.Deserialize(string)' has some invalid arguments at CallSite.Target(Closure , CallSite , Type , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , Type , Object ) at ASP.PageViewsPartialsFeaturedSliderItemcshtml.Execute() in c:\inetpub\wwwrootcms_wb3\Views\Partials\FeaturedSliderItem.cshtml:line 7 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at WebBlocks.Views.RenderingEngines.PartialViewRenderingEngine.Render(HtmlHelper html)
module #2
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'uComponents.DataTypes.UrlPicker.Dto.UrlPickerState.Deserialize(string)' has some invalid arguments at CallSite.Target(Closure , CallSite , Type , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , Type , Object ) at ASP.PageViewsPartialsFeaturedMemberResourceItemcshtml.Execute() in c:\inetpub\wwwrootcms_wb3\Views\Partials\FeaturedMemberResourceItem.cshtml:line 8 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at WebBlocks.Views.RenderingEngines.PartialViewRenderingEngine.Render(HtmlHelper html)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.