拒绝访问路径'Global-IronSoftwareDeploymentGlobal'

This article was translated from English: Does it need improvement?
Translated
View 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()
    --- End of inner exception stack trace ---
    at ?.?[?]()
    at ?.?()

问题概述

上面的错误表明对路径 'Global\IronSoftwareDeploymentGlobal' 的访问被拒绝。这个问题可能出现在旧版本的IronPDF中,特别是版本2021.11.4257或更早版本,因为使用了WebKit PDF渲染引擎和本机代码中相关的互斥方法。

可能的原因

问题源于与IronPDF库中使用的全局互斥体相关的权限问题。此互斥体是IronPDF基于WebKit的渲染引擎的内部实现的一部分。

解决方案

为了解决这个问题,请升级 IronPDF 版本到 2021.12.4401 或更高版本。在这些较新版本中,已移除有问题的互斥锁。

如果升级无法解决问题,请联系我们的 工程支持 以便进一步调查和协助。