2021年12月24日 星期五

如何從把原本在MAC的Parallels desktop 的windows 10的虛擬機升級到windows 11, Parallels Desktop windows 10 VM upgrade to windows 11 on a MAC

Windows 11已經出一段時間了 

但是parallels desktop的win10 vm一直沒有出現更新windows 11

結果是我的VM不符合windows 11升級之資格

要把Parallels Desktop 的Windows 10 VM升級到Windows 11有些步驟

Some steps to upgrade Parallels Desktop's Windows 10 VM to Windows 11

1.要把Parallels Desktop 升級到17.1以後版本 

1. To upgrade Parallels Desktop to version 17.1 or later

2.需把win10 VM升級到2004之後的版本

2. Need to upgrade win10 VM to the version after 2004

3.VM記憶體需要有4GB以上,儲存空間需有64GB以上,Win10 需有正版授權

3.VM memory needs to be 4GB or more, storage space needs to be 64GB or more, and Win10 needs a genuine license

4.把VM關機

4.Turn off the VM

5.在Win10 VM的控制中心組態的硬體 左下角的+號按下去增加 TPM晶片的硬體

5.Open VM configuration settings > Hardware 

Scroll down the hardware list and check if the TPM chip is added:

如下parallels的介紹

https://kb.parallels.com/en/128559

6.Win10 VM開機 按開始->設定->Windows Update 就會出現Windows 11的升級可以更新

6.Boot Win10 VM and press Start->Settings->Windows Update, and Windows 11 upgrade can be updated.

或是 執行電腦健康情況檢查應用程式後 下載 Windows 11安裝小幫手 就可以升級Windows 11

Or after running the Widnows PC Health Check APP, download Windows 11 Installation Assistant to upgrade Windows 11

2021年12月23日 星期四

某個罕見的中文字在asp.net 網站使用report viewer 產生的 pdf無法顯示會變成方匡

今天遇到一個中文字的狀況
就是在asp.net 網站產生的PDF 無法顯示那個中文字在mac電腦也無法顯示那個中文字

但是在windows下用winform 程式用word元件產生的pdf卻可以顯示那個字 

這個字如下網頁在Windows 下可以顯示字 但是mac無法顯示那個字https://ctext.org/dictionary.pl?if=gb&char=%F0%A5%A1%A5

後來找到原因是因為原本網頁的report viewer 是2010

只要更新成report viewer 2015 後就可以正常顯示 下面可以抓

Report Viewer 2015 Runtime

再裝Report Viewer 2015 RunTime前可能要先裝SQLSysClrTypes For SQL Server 2014

SQL Sys Clr Types For Sql Server 2014

更新需把web.config 更新一下

在<system.web><assembly>

<add assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/> 

在<system.webServer><handlers>下

<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />


更新之後再從web重新產生pdf那個奇怪的 種 字 就可以正常顯示在mac的pdf也可以看到他