Come aggiornare Doconut
Segui questi passaggi per aggiornare dalla versione 1.0.5.2 o inferiore.
.NET Framework 4.7
Configurazione Web.config
Il viewer richiede che HttpHandler sia registrato tramite il file web.config. A seconda della versione di IIS, è possibile farlo utilizzando la seguente sezione definita in web.config.
<httpHandlers>
<add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers><handlers>
<add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>Aggiorna la registrazione nelle pagine ASPX
Modifica la registrazione dell'assembly nelle tue pagine ASPX.
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %><%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>Aggiorna il tag di controllo
Aggiorna il tag di controllo da DocViewer a Viewer.
<asp:DocViewer ID="ctlDoc" runat="server"/><asp:Viewer ID="ctlDoc" runat="server"/>Aggiorna gli spazi dei nomi
Doconut 24.3.0 ha rinominato gli spazi dei nomi. Aggiungi i nuovi DLL: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll e Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Dipendenze dei pacchetti
- Newtonsoft.Json 13.0.3
- System.Text.Encoding.CodePages 6.0.0
- System.Text.Json 6.0.0
.NET Standard / Core
Aggiorna gli spazi dei nomi
Doconut 24.3.0 ha rinominato gli spazi dei nomi. Aggiungi i nuovi DLL: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll e Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Dipendenze dei pacchetti
- Microsoft.Extensions.Caching.Abstractions 3.1.10
- SkiaSharp 2.88.6
- Newtonsoft.Json 13.0.3
- System.Drawing.Common 6.0.0
- System.Text.Json 6.0.0
- System.Text.Encoding.CodePages 7.0.0
.NET 6 o superiore
Aggiorna gli spazi dei nomi
Doconut 24.3.0 ha rinominato gli spazi dei nomi. Aggiungi i nuovi DLL: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll e Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Dipendenze dei pacchetti
- Microsoft.Extensions.Caching.Abstractions 3.1.10
- Newtonsoft.Json 13.0.3
- SkiaSharp 2.88.6
- System.Drawing.Common 7.0.0
- System.Text.Encoding.CodePages 7.0.0