System.NotSupportedException

System.NotSupportedException

Forum member · Apr 8, 2020
Hi We have been using ceTe.DynamicPDF.Viewer version 1.0.2 for a long time, but after upgrading our solution to .Net 4.7 it failed with exception - System.NotSupportedException: 'The invoked member is not supported in a dynamic assembly.' - at line ceTe.DynamicPDF.Viewer.PdfViewer.AddLicense("....") Update to DynamicPDF.Viewer.NETFramework40.x86.dll veersion 3.3 did not help. Is it possible to use DynamicPDF.Viewer with .net 4.7 and what should be done to avoid System.NotSupportedException?

Re: System.NotSupportedException

Support · Apr 8, 2020
Hello, We tested this on our end and are unable to recreate the error. Version 3.x of DynamicPDF Viewer for .NET supports v4.x of the .NET framework. We have separate DLL files for each .NET framework version and target platform (x86 or x64). Make sure to reference the correct DLL file as per the .NET framework version and target platform set for the application. You can refer to the documentation on .NET framework support here . If you continue having issues, please send over the following information to [^a|mailto:support@dynamicpdf.com|opennewwindow|support@dynamicpdf.com^] so we can look into it further. 1. Simple windows form application which uses static data to recreate the error. 2. Steps to recreate the error. 3. Full error message along with stack trace. 4. Exact version and build number of the DynamicPDF Viewer DLL file used in the application. You can get this information in DLL references properties (Version and Description fields) in Visual Studio. Thanks, ceTe Software Support Team

Re: System.NotSupportedException

Forum member · Apr 9, 2020
Hi Seems that the problem was caused by cache on my PC - works now after manual removing bin and obj folders and cleaned Visual Studio cache.