We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MTouch Assembly Loading Warnings

Thread ID:

Created:

Updated:

Platform:

Replies:

146698 Aug 14,2019 02:47 PM UTC Aug 19,2019 09:00 AM UTC Xamarin.iOS 4
loading
Tags: PdfViewer
Renewals
Asked On August 14, 2019 02:47 PM UTC

Hello,

In our solution we have a .NET Standard project which references Syncfusion.Pdf.Net.Core and a Xamarin.iOS project which references Syncfusion.Xamarin.SfPdfViewer.IOS (using PackageReference).

When I build the application I receive the following 3 warnings:

MTOUCH : warning MT0109: The assembly 'Syncfusion.Compression.Portable.dll' was loaded from a different path than the provided path (provided path: /Users/vsts/.nuget/packages/syncfusion.xamarin.compression/17.2.0.34/lib/netstandard2.0/Syncfusion.Compression.Portable.dll, actual path: /Users/vsts/.nuget/packages/syncfusion.compression.net.core/17.2.0.34/lib/netstandard2.0/Syncfusion.Compression.Portable.dll). [/Users/vsts/agent/2.155.1/work/1/s/***.MyApp.iOS/***.MyApp.iOS.csproj] MTOUCH : warning MT0109: The assembly 'Syncfusion.Pdf.Portable.dll' was loaded from a different path than the provided path (provided path: /Users/vsts/.nuget/packages/syncfusion.xamarin.pdf/17.2.0.34/lib/netstandard2.0/Syncfusion.Pdf.Portable.dll, actual path: /Users/vsts/.nuget/packages/syncfusion.pdf.net.core/17.2.0.34/lib/netstandard2.0/Syncfusion.Pdf.Portable.dll). [/Users/vsts/agent/2.155.1/work/1/s/***.MyApp.iOS/***.MyApp.iOS.csproj] MTOUCH : warning MT0109: The assembly 'System.Text.Encoding.CodePages.dll' was loaded from a different path than the provided path (provided path: /Users/vsts/.nuget/packages/system.text.encoding.codepages/4.4.0/runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.11/lib/mono/Xamarin.iOS/Facades/System.Text.Encoding.CodePages.dll). [/Users/vsts/agent/2.155.1/work/1/s/***.MyApp.iOS/***.MyApp.iOS.csproj]

Is there a difference between the conflicting assemblies in these warnings, is this something that I should be worried about? Also, can you fix the Nuget packages so these warnings are not displayed at all?

I've also attached a sample project and linked a Github issue that I've logged https://github.com/xamarin/xamarin-macios/issues/6758, not knowing if this is a Xamarin.iOS issue or a Syncfusion issue.

Thank you,
Cosmin



Attachment: PackageReference_d0b9308e.zip

Gayathri Ramalingam [Syncfusion]
Replied On August 15, 2019 06:05 AM UTC

Hi Cosmin, 
 
We were able to reproduce the warning of System.Text.Encoding.CodePages.dll' was loaded from a different path than the provided path with sample shared by you in v17.2.0.34.  
 
We created a video for illustrating the same and it can be downloaded from the below links, 
 
We have forwarded this issue to our development team for further analysis and we will update further details by 20-August-2019. 
 
 
With Regards, 
Gayathri R 
 


Renewals
Replied On August 15, 2019 06:27 AM UTC

As a result we actually run into this crash:

SIGABRT: Method `Syncfusion.Pdf.PdfPageBase.ObtainAnnotations()' is inaccessible from method `Syncfusion.SfPdfViewer.iOS.ScrollViewEx+<LoadDocument>d__258.MoveNext()'

  • (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr)
  • ScrollViewEx+<LoadDocument>d__258.MoveNext ()
  • AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state)
  • NSAsyncSynchronizationContextDispatcher.Apply ()
  • (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  • UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
  • UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
  • Application.Main (System.String[] args)

Renewals
Replied On August 15, 2019 08:32 AM UTC

In the end the solution was Syncfusion.Xamarin.Pdf in the .NET Standard project instead of Syncfusion.Pdf.Net.Core

Gayathri Ramalingam [Syncfusion]
Replied On August 19, 2019 09:00 AM UTC

Hi Cosmin,  
 
Thank you for your update. 
 
Yes. The warning of System.Text.Encoding.CodePages.dll' was loaded from a different path than the provided path does not occur while using Syncfusion.Xamarin.Pdf in the .NET Standard project instead of Syncfusion.Pdf.Net.Core. 
 
Please let us know if you need any assistance. 
 
With Regards, 
Gayathri R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon