Telerik.ui.for.Xamarin v 2021.1.224.1
System.MethodAccessException: Method `Telerik.Windows.Documents.Fixed.Utilities.Rendering.PageLayoutHelper.CalculatePageBoundingRectangle(Telerik.Windows.Documents.Fixed.Model.Common.IFixedPage)' is inaccessible from method `Telerik.XamarinForms.PdfViewer.PdfUtilities.GetPageSize(Telerik.Windows.Documents.Fixed.Model.RadFixedPage)'
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr)
at Telerik.XamarinForms.PdfViewer.PdfUtilities.GetPageSize (Telerik.Windows.Documents.Fixed.Model.RadFixedPage page) [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.TryGetSameHeight (Telerik.Windows.Documents.Fixed.Model.Collections.PageCollection pages) [0x0001b] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.TryCreatePageTuple (Telerik.XamarinForms.PdfViewer.DocumentInfo documentInfo) [0x0004d] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.UpdatePageInfos () [0x00024] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.OnDocumentChanged () [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.FixedDocumentContinuousPresenterV2.OnDocumentInfoChangedOverride () [0x00025] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.FixedDocumentPresenterBase.set_DocumentInfo (Telerik.XamarinForms.PdfViewer.DocumentInfo value) [0x00010] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnDocumentInfoChanged (Telerik.XamarinForms.PdfViewer.DocumentInfo oldValue, Telerik.XamarinForms.PdfViewer.DocumentInfo newValue) [0x00009] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.set_DocumentInfo (Telerik.XamarinForms.PdfViewer.DocumentInfo value) [0x00017] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnDocumentChanged () [0x00015] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnPropertyChanged (System.String propertyName) [0x0000d] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindablePropertyKey propertyKey, System.Object value) [0x0000e] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:356
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.SetDocument (Telerik.Windows.Documents.Fixed.Model.RadFixedDocument value) [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.UpdateDocumentFromSource () [0x0001a] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.Source_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.Common.NotifyPropertyChangedBase.OnPropertyChanged (System.String propertyName) [0x00015] in <1c319f0f665e4035ab8e82495214d254>:0
at Telerik.XamarinForms.PdfViewer.DocumentSource.set_Document (Telerik.Windows.Documents.Fixed.Model.RadFixedDocument value) [0x0002c] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.DocumentSource.SetDocumentStreamTuple (Telerik.XamarinForms.PdfViewer.DocumentStreamTuple value) [0x0001e] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.StreamDocumentSource+<>c__DisplayClass18_1.<UpdateDocumentFromStreamFunc>b__2 () <0x153447728 + 0x00056> in <136b85164c274f2fa1cf0f48d0e3f200#897a8708db8305ecb598233d4a92b40f>:0
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/Foundation/NSAction.cs:152
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/UIKit/UIApplication.cs:65
at Kpmg.Constellation.Mobile.iOS.Application.Main (System.String[] args) [0x00002] in /Users/ananeabdeljalil/GitSource/myPulseV2/Constellation.Mobile/src/Kpmg.Constellation.Mobile.iOS/Main.cs:18
System.MethodAccessException: Method `Telerik.Windows.Documents.Fixed.Utilities.Rendering.PageLayoutHelper.CalculatePageBoundingRectangle(Telerik.Windows.Documents.Fixed.Model.Common.IFixedPage)' is inaccessible from method `Telerik.XamarinForms.PdfViewer.PdfUtilities.GetPageSize(Telerik.Windows.Documents.Fixed.Model.RadFixedPage)'
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr)
at Telerik.XamarinForms.PdfViewer.PdfUtilities.GetPageSize (Telerik.Windows.Documents.Fixed.Model.RadFixedPage page) [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.TryGetSameHeight (Telerik.Windows.Documents.Fixed.Model.Collections.PageCollection pages) [0x0001b] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.TryCreatePageTuple (Telerik.XamarinForms.PdfViewer.DocumentInfo documentInfo) [0x0004d] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.UpdatePageInfos () [0x00024] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.Presenters.VerticallyStackedPagesStrategy.OnDocumentChanged () [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.FixedDocumentContinuousPresenterV2.OnDocumentInfoChangedOverride () [0x00025] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.FixedDocumentPresenterBase.set_DocumentInfo (Telerik.XamarinForms.PdfViewer.DocumentInfo value) [0x00010] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnDocumentInfoChanged (Telerik.XamarinForms.PdfViewer.DocumentInfo oldValue, Telerik.XamarinForms.PdfViewer.DocumentInfo newValue) [0x00009] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.set_DocumentInfo (Telerik.XamarinForms.PdfViewer.DocumentInfo value) [0x00017] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnDocumentChanged () [0x00015] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.OnPropertyChanged (System.String propertyName) [0x0000d] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindablePropertyKey propertyKey, System.Object value) [0x0000e] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:356
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.SetDocument (Telerik.Windows.Documents.Fixed.Model.RadFixedDocument value) [0x00000] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.UpdateDocumentFromSource () [0x0001a] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.RadPdfViewer.Source_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.Common.NotifyPropertyChangedBase.OnPropertyChanged (System.String propertyName) [0x00015] in <1c319f0f665e4035ab8e82495214d254>:0
at Telerik.XamarinForms.PdfViewer.DocumentSource.set_Document (Telerik.Windows.Documents.Fixed.Model.RadFixedDocument value) [0x0002c] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.DocumentSource.SetDocumentStreamTuple (Telerik.XamarinForms.PdfViewer.DocumentStreamTuple value) [0x0001e] in <136b85164c274f2fa1cf0f48d0e3f200>:0
at Telerik.XamarinForms.PdfViewer.StreamDocumentSource+<>c__DisplayClass18_1.<UpdateDocumentFromStreamFunc>b__2 () <0x153447728 + 0x00056> in <136b85164c274f2fa1cf0f48d0e3f200#897a8708db8305ecb598233d4a92b40f>:0
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/Foundation/NSAction.cs:152
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/2/s/xamarin-macios/src/UIKit/UIApplication.cs:65
at Kpmg.Constellation.Mobile.iOS.Application.Main (System.String[] args) [0x00002] in /Users/ananeabdeljalil/GitSource/myPulseV2/Constellation.Mobile/src/Kpmg.Constellation.Mobile.iOS/Main.cs:18
We would need more details on the scenario you have as it's difficult to find out what's the reasons behind the exception only from the stack trace. Would it be possible to send me the PdfViewer definition and the code for loading the pdf document?