IronSoftware中的全域路徑訪問被拒絕
This article was translated from English: Does it need improvement?
TranslatedView the article in English
System.TypeInitializationException: The type initializer for '?' threw an exception.
---> System.UnauthorizedAccessException: Access to the path 'Global\IronSoftwareDeploymentGlobal' is denied.
at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew)
at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name)
at ?..cctor()app
--- End of inner exception stack trace ---
at ?.?[?]()
at ?.?()
問題摘要
上述錯誤表明對路徑 'Global\IronSoftwareDeploymentGlobal' 的訪問被拒絕。 此問題可能發生在舊版本的IronPDF中,尤其是2021.11.4257或更早版本,由於使用了WebKit PDF渲染引擎和本機代碼中的關聯互斥方法。
可能原因
問題源於 IronPDF 庫中使用的全局互斥體相關的權限問題。 此互斥體是 IronPDF 的基於 WebKit 的渲染引擎內部實現的一部分。
解決方案
要解決此問題,請升級IronPDF版本至 2021.12.4401或之後。 在這些新版本中,已經移除了有問題的互斥體。
如果升級無法解決問題,請聯絡我們的工程支援進一步調查和協助。