Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵兆

當您嘗試將 ASPX 檔案建立為自訂網頁組件時,則無法顯示該檔案。 發生此問題時,下列錯誤項目和「92liq」事件標記會記錄在 SharePoint Unified Logging System (ULS) 記錄檔中:

使用屬性橫向標記封鎖控制項。 [tagName: <TagName>][propName: <UnsafePropertyName>][type: <PropertyType>]

原因

發生此問題是因為此 ASPX 檔案中的標籤設定了不安全的屬性名稱。

狀態 

這項新行為的設計是為了加強 SharePoint Server 中的安全性。 

因應措施

附註: 如果您的網頁組件需要的話,使用者可以略過這項安全性改進。 請先確認網頁組件可以安全地使用這些屬性名稱,然後再依照下列步驟重新啟用 SharePoint Server 中的網頁組件。

如果您是伺服器陣列系統管理員,您可以將屬性名稱新增至 SharePoint 管理命令介面中的 WebPartSupportedSimplePropertyNamesWebPartSupportedBoundPropertyNames 清單以解決此問題:

  • 如果 <PropertyType> 為 SimplePropertyEntry,請執行下列命令:

    add-pssnapin *
    $f=get-spfarm
    $f.AddGenericAllowedListValue("WebPartSupportedSimplePropertyNames","<UnsafePropertyName>")
    $f.update()
    iisreset

  • 如果 <PropertyType> 為 BoundPropertyEntry,請執行下列命令:

    add-pssnapin *
    $f=get-spfarm
    $f.AddGenericAllowedListValue("WebPartSupportedBoundPropertyNames","<UnsafePropertyName>")
    $f.update()
    iisreset

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×