疑難排解 Visio 增益集Troubleshooting the Visio Add-in

重要

已不再支援此版本的 Operations Manager,建議升級至 Operations Manager 2019This version of Operations Manager has reached the end of support, we recommend you to upgrade to Operations Manager 2019.

下列各節提供疑難排解 Visio 增益集的相關資訊︰The following sections provide information about troubleshooting the Visio Add-in:

  • 啟用資料提供者的追蹤記錄Enabling trace logging on the data provider

  • 已知問題Known issues

啟用針對伺服器資料模組的追蹤記錄Enable trace logging for the server data module

使用下列步驟啟用針對安裝在 SharePoint 伺服器上之伺服器資料模組的追蹤記錄。Use the following steps to enable trace logging for the server data module installed on the SharePoint server.

  1. 使用文字編輯器 (例如 [記事本])) 開啟 Microsoft.Office.Visio.Server.OperationsManager.dll 組態檔。Open the Microsoft.Office.Visio.Server.OperationsManager.dll configuration file in a text editor (such as Notepad).

  2. 變更記錄檔的位置。Change the location for log files. 尋找是否存在下列問題:Look for the following:

    <configuration>  
       <appSettings>  
          <add key="EnableLog" value="True" />  
          <add key="LogPath" value=\\server\directory" />  
       <appSettings>  
    </configuration>  
    

    請將 LogPath 參數的值變更為您要儲存資料提供者所產生之記錄檔的位置。For the LogPath parameter, change the value to the location where you want to save log files generated by the data provider.

  3. 將組態檔複製到資料模組組件所在的 GAC 目錄。Copy the configuration file to the directory on the GAC where the data module assembly is located.

下次重新整理圖表時會檢查組態檔,並將記錄檔寫入您指定的位置。The next time a diagram is refreshed, the configuration file is checked and log files are written to the location you specific.

每次的重新整理選項都會記錄在另外的記錄檔中。Each refresh option is recorded in a separate log file. 檔案的名稱會反映嘗試重新整理的使用者以及嘗試重新整理的日期和時間 (例如,"jdoe_3_25_2010_12-23-37_PM.log")。The name of the file reflects the user who attempted the refresh and the date and time the refresh was attempted (for example, "jdoe_3_25_2010_12-23-37_PM.log"). 記錄檔包含下列項目:The log file contains the following:

  • 要求重新整理的使用者名稱The name of the user that requested the refresh

  • 重新整理的時間與日期The date and time of the refresh

  • 伺服器上安裝的組件版本The version of the assembly installed on the server

  • 圖表發佈到伺服器之前已設定的命令字串The command string that was configured in the diagram before publishing to the server

  • 要重新整理的資料集詳細資料,包括資料表計數、資料列計數和每個資料列的識別碼Details about the dataset to be refreshed, including table count, row count, and IDs for each row

  • 每個工作階段資料模組內發生的任何錯誤條件或例外狀況Any error conditions or exceptions that occur within the data module for each session

為使重新整理嘗試成功,記錄檔也包含傳回至 Visio Services 的資料集 XML 版本,以供圖表重新整理之用。For successful refresh attempts, the log file also contains the XML version of the dataset returned to Visio Services for diagram refresh purposes.

Visio 增益集的已知問題Known issues with the Visio Add-in

當您使用 System Center 2016 - Operations Manager 的 Visio 增益集時,可能會遇到下列問題。You might see the following issues when you use the Visio Add-in for System Center 2016 - Operations Manager.

插入圖形的字型大小可能太小The font size of inserted shapes might appear too small

當您使用 [插入圖形] 選項插入新的圖形時,圖形文字的字型大小顯示可能太小。When you insert a new graphic by using the Insert Shape option, the font size for the shape text might appear too small. 大小是由範本的預設字型大小設定所決定。The size is determined by the default font size set for a template.

您可以選取圖形,然後在 Visio 工具列中選擇不同的字型大小來變更字型大小。You can change the font size by selecting the shape and then choosing a different font size in the Visio toolbar.

如果您將圖形分組,或將連結新增至任何已包含在群組中的圖形時,編輯模式或全螢幕模式可能無法使用 [健全狀況總管] 及 [警示] 檢視的超連結。Health Explorer and Alert View hyperlinks might not be available in Edit mode or Full Screen mode if you have grouped your shapes or added links to any shapes that were already contained within groups.

您會收到 ConfigurationErrorsException 錯誤訊息You receive a ConfigurationErrorsException error message

您可能會看到下列錯誤訊息︰You might see the following error message:

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize --->   
System.Configuration.ConfigurationErrorsException: Unrecognized configuration section userSettings.   
   (C:\Documents and Settings\asttest\Local Settings\Application Data\Microsoft_Corporation  
   \OpsMgrAddin.vsto_vstoloca_Path_logwdvddmizljsrbc2bvt5gtm5juzdix\12.0.6325.5000\user.config        
   line 3)  
.  
.  
.  

若要解決此問題,請刪除錯誤訊息頂端找到的組態檔。To work around this problem, delete the configuration file identified at the top of the error message. 例如,刪除下列檔案:For example, delete the following file:

\OpsMgrAddin.vsto_vstoloca_Path_logwdvddmizljsrbc2bvt5gtm5juzdix\12.0.6325.5000\user.config\OpsMgrAddin.vsto_vstoloca_Path_logwdvddmizljsrbc2bvt5gtm5juzdix\12.0.6325.5000\user.config

您會收到 MissingMethodException 錯誤訊息You receive a MissingMethodException error message

您可能會看到下列錯誤訊息︰You might see the following error message:

System.MissingMethodException: Method not found: 'System.Security.SecureString System.Windows.Controls.PasswordBox.get_SecurePassword()'.  
   at Microsoft.EnterpriseManagement.VisioAddin.EnterCredentials.get_Password()  
   at Microsoft.EnterpriseManagement.VisioAddin.SCOMHelpers.EnterCredentials(ManagementGroupConnectionSettings& connectSettings)  
   at Microsoft.EnterpriseManagement.VisioAddin.Document.ConnectToManagementGroup()  
   at Microsoft.EnterpriseManagement.VisioAddin.Document.AddDataLinkToShape()  

若要解決此問題,請安裝 Microsoft .NET Framework 3.5 SP1(可從 https://www.microsoft.com/download/details.aspx?id=22 取得)。To resolve this problem, install Microsoft .NET Framework 3.5 SP1, available from https://www.microsoft.com/download/details.aspx?id=22.

不顯示狀態圖形The state graphic is not displayed

即使您已使用 [Link Shape to Data](將圖形連結到資料) 選項來連結圖形,樣板還是不會顯示狀態圖形。The state graphic does not appear on a stencil even though you have linked the shape with the Link Shape to Data option.

Visio 有些樣板未定義包裝群組。Some stencils in Visio are not defined with a wrapping group. 若要解決此問題,請建立圖形群組,然後再次使用 [Link Shape to Data](將圖形連結到資料) 選項。To resolve this problem, create a group for the shape, and then use the Link Shape to Data option again. 若要建立群組,請以滑鼠右鍵按一下圖形,然後按一下 [圖形] 和 [群組] 。To create a group, right-click the shape, and then click Shape and Group.

開啟圖表時會看到安全性警告You see security warnings when you open a diagram

當您開啟先前已連結到 Operations Manager 的文件時,您會收到多個安全性警告。When you open a document that you previously linked to Operations Manager, you receive multiple security warnings.

因為文件元件的狀態設定為自動重新整理,所以會發生這個問題。This problem occurs because the status of the document components is set to refresh automatically. 若要隱藏這些警告,請選取 [不要再顯示這個訊息] 。To suppress the warnings, select Don't show this message again.

無法重新安裝 Visio 增益集You cannot re-install the Visio Add-in

如果您使用 Visio 信任中心刪除 Operations Manager Visio 增益集,之後即無法再加入它。If you delete the Operations Manager Visio Add-in by using the Visio Trust Center, you cannot add it again later.

此行為是 Visio 的設計所致。This behavior occurs by design in Visio. 您必須先使用 [控制台] 的 [新增/移除程式](或 [程式和功能]) 以解除安裝 Operations Manager Visio 增益集,然後重新安裝該增益集,才能再次新增它。Before you can add the Operations Manager Visio Add-in again, uninstall it by using Add/Remove Programs (or Programs and Features) in the Control Panel, and then reinstall it.