วิธีอัปเดต Doconut
ทำตามขั้นตอนเหล่านี้เพื่ออัปเดตจากเวอร์ชัน 1.0.5.2 หรือต่ำกว่า
.NET Framework 4.7
การกำหนดค่า Web.config
Viewer ต้องการให้ HttpHandler ถูกลงทะเบียนผ่านไฟล์ web.config ขึ้นอยู่กับเวอร์ชัน IIS ของคุณ สามารถทำได้โดยใช้ส่วนต่อไปนี้ที่กำหนดใน web.config
IIS 7 หรือต่ำกว่า:
<httpHandlers>
<add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers>IIS 7 ขึ้นไป:
<handlers>
<add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>อัปเดตการลงทะเบียนในหน้า ASPX
เปลี่ยนการลงทะเบียนแอสเซมบลีในหน้า ASPX ของคุณ
เก่า:
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %>ใหม่:
<%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>อัปเดตแท็กคอนโทรล
อัปเดตแท็กคอนโทรลจาก DocViewer เป็น Viewer
เก่า:
<asp:DocViewer ID="ctlDoc" runat="server"/>ใหม่:
<asp:Viewer ID="ctlDoc" runat="server"/>อัปเดตเนมสเปซ
Doconut 24.3.0 ได้เปลี่ยนชื่อเนมสเปซ เพิ่ม DLL ใหม่: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, และ Doconut.Clouds.dll
Usings ใหม่:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;การเริ่มต้น:
var viewer = new Viewer();การพึ่งพาแพ็กเกจ
- Newtonsoft.Json 13.0.3
- System.Text.Encoding.CodePages 6.0.0
- System.Text.Json 6.0.0
.NET Standard / Core
อัปเดตเนมสเปซ
Doconut 24.3.0 ได้เปลี่ยนชื่อเนมสเปซ เพิ่ม DLL ใหม่: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, และ Doconut.Clouds.dll
Usings ใหม่:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;การเริ่มต้น:
var viewer = new Viewer();การพึ่งพาแพ็กเกจ
- 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 หรือสูงกว่า
อัปเดตเนมสเปซ
Doconut 24.3.0 ได้เปลี่ยนชื่อเนมสเปซ เพิ่ม DLL ใหม่: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, และ Doconut.Clouds.dll
Usings ใหม่:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;การเริ่มต้น:
var viewer = new Viewer();การพึ่งพาแพ็กเกจ
- 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
หน้านี้เป็นประโยชน์หรือไม่?