Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Jan 06, 2021 3:56 pm

I'm using FreeSpire from nuget in my Xamarin.Forms app to convert an RTF file to HTML (RTFPipe can't parse the file correctly).

I'm using the line

Code: Select all
var doc = new Document();


to create an empty document. However, when the debugger hits that line, the following exception is thrown

Code: Select all
System.ArgumentNullException: 'Value cannot be null. Parameter name: path1


The stacktrace shows the following

Code: Select all
 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.IO/Path.cs:102  at Spire.License.LicenseProvider.ᜀ (System.Type A_0) [0x00b04] in <cbf4d19d91bc48bebfd56cc173b03744>:0  at Spire.License.LicenseProvider.ᜁ (System.Type A_0) [0x000eb] in <cbf4d19d91bc48bebfd56cc173b03744>:0  at Spire.License.LicenseProvider.GetLicense (System.ComponentModel.LicenseContext context, System.Type type, System.Object instance, System.Boolean allowExceptions) [0x0013c] in <cbf4d19d91bc48bebfd56cc173b03744>:0  at System.ComponentModel.LicenseManager.ValidateInternalRecursive (System.ComponentModel.LicenseContext context, System.Type type, System.Object instance, System.Boolean allowExceptions, System.ComponentModel.License& license, System.String& licenseKey) [0x0005d] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.cs:316  at System.ComponentModel.LicenseManager.ValidateInternal (System.Type type, System.Object instance, System.Boolean allowExceptions, System.ComponentModel.License& license) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.cs:276  at System.ComponentModel.LicenseManager.IsValid (System.Type type, System.Object instance, System.ComponentModel.License& license) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.cs:236  at Spire.Doc.Document.ᜀ () [0x00083] in <cadd5a62e86a41f7af17954bf73d8f6c>:0  at Spire.Doc.Document..ctor () [0x000d7] in <cadd5a62e86a41f7af17954bf73d8f6c>:0  at Quizical.Droid.Injected.RTFConvert.ConvertRTF (System.String storage, System.String filename) [0x0000b] in C:\Users\Paul\source\repos\ceditacorporate\Quizical\Quizical\Quizical.Android\Injected\RTFConvert.cs:14  at Quizical.ViewModels.UIElementsViewModel.<.ctor>b__2_1 (System.String t) [0x00020] in C:\Users\Paul\source\repos\ceditacorporate\Quizical\Quizical\Quizical\ViewModels\UIElementsViewModel.cs:54  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395


My understanding is that Freespire doesn't need a licence which the stacktrace suggests is missing.

nodoid1971
 
Posts: 1
Joined: Wed Jan 06, 2021 3:52 pm

Thu Jan 07, 2021 3:34 am

Hello,

Thanks for your inquiry.
Sorry to tell you that our Free Spire.Doc doesn’t support working with Xamarin.Forms app, but our commercial version (the latest version is Spire.Doc 8.12.14) does. We recommend you try with our commercial version. And we are willing to provide a temporary license (one month free) to help you evaluate our commercial edition better and remove the warning message. If interested, please contact our sales team (sales@e-iceblue.com) to get it.
If there are any questions, just feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc