Hello team DocuVieware,
Upgrading to the newest nuget packages (3.2.28 - 3.2.30) results in a systematic exception on document load (either via LoadFromUri or LoadFromStream)
The simplest case I've tried is a text file:
* LoadFromUri just loads the file from a url
* and LoadFromStream takes a plain text stream and document name is something ending in .txt
I haven't yet found a file that works in this version range.
Any ideas ?
Thanking you in advance,
Loren
The following is the full message and stack trace :
Could not load file or assembly 'System.IO.Packaging, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Le fichier spécifié est introuvable.
at GdPicture.Internal.OpenXML.WordProcessingML.WordprocessingMLDocument.ᜀ(Stream A_0)
at GdPicture.Internal.Document.GdPictureDocumentFormatUtilities.GetDocumentFormatFromStream(Stream stream, String& filePath, Boolean& isFullPath)
at GdPicture.Internal.Document.GdPictureDocumentFactory.CreateFromStream(PageCacheMode cacheMode, Boolean enableEditing, Stream stream, DocumentFormat documentFormat, Uri baseURI, String fileName, Boolean fileNameIsPath, GdPictureDocument& document, Boolean icm, Boolean thumbnailMode, Boolean directAccess, Int32 maxPages, Boolean ownStream, Single dpi, PDFConversionSettings pdfConversionSettings, OfficeConversionSettings officeConversionSettings, Boolean leaveStreamOpenOnError, BeforeRequest beforeRequest, ProcessMonitor monitor, IGdPictureLogger logger)
at ᜊ.ᜀ(Stream A_0, Uri A_1, String A_2, ViewerZoomMode A_3, Double A_4, Boolean A_5, DocumentAppendMode A_6, String A_7, String A_8, Boolean A_9, Boolean A_10)
at ᜊ.ᜀ(Uri A_0, ICredentials A_1, TokenImpersonationLevel A_2, NameValueCollection A_3, ViewerZoomMode A_4, Double A_5, String A_6)
at GdPicture14.WEB.DocuViewareControl.LoadFromUri(Uri Uri, String Password, NameValueCollection CustomHeaders, ICredentials Credentials, TokenImpersonationLevel ImpersonationLevel)
at Isagri.DocumentsViewer.Pages.Pages_Index.<ExecuteAsync>d__0.MoveNext() in C:\outils.tfs\DocumentsViewer\Main\src\Viewer\DV.WebSite\Pages\Index.cshtml:line 278
FileNotFoundException on load from 3.2.28 to 3.2.30
Re: FileNotFoundException on load from 3.2.28 to 3.2.30
Hello,
It looks like a dependency issue due to a missing package.
Could you please delete the bin/package folder of your application, run this command in the Package Console of Visual Studio and tell me how it goes? -> Update-Package –reinstall System.IO.Packaging
Also, please check your web.config or other configuration files if there is an old/wrong reference to this package.
Best regards,
Fabio
It looks like a dependency issue due to a missing package.
Could you please delete the bin/package folder of your application, run this command in the Package Console of Visual Studio and tell me how it goes? -> Update-Package –reinstall System.IO.Packaging
Also, please check your web.config or other configuration files if there is an old/wrong reference to this package.
Best regards,
Fabio
Re: FileNotFoundException on load from 3.2.28 to 3.2.30
Hello Fabio
Thank you for the reply. It looks like it's just like the last time in fact. I'm sorry that I didn't pick up on it earlier.
For the record, I explicitly added the nuget package System.IO.Packaging 7.0.0 and it loads as it should
Thanks again for your help
Loren
Thank you for the reply. It looks like it's just like the last time in fact. I'm sorry that I didn't pick up on it earlier.
For the record, I explicitly added the nuget package System.IO.Packaging 7.0.0 and it loads as it should
Thanks again for your help
Loren
Who is online
Users browsing this forum: No registered users and 0 guests