Microsoft 信息保护 SDK 1.7.133 - Load library failed 问题错误

Microsoft information protection SDK 1.7.133 - Load library failed issue error

我之前使用的是MIP SDK 1.6,我通过提供路径来初始化MIP。它工作正常。 我升级到 1.7 版本,现在它因加载库失败错误而失败。

{"Message":"An error has occurred.","ExceptionMessage":"LoadLibrary failed for: [C:\inetpub\wwwroot\teststs\bin\x64\mip_dotnet.dll]", "ExceptionType":"System.ComponentModel.Win32Exception","StackTrace":" at Microsoft.InformationProtection.Utils.SafeNativeMethods.LoadLibrary(String dllToLoad)\r\n at Microsoft.InformationProtection.Utils.Loader.LoadDlls(String dllFolder, String dllName, String[] dllDependencies)\r\n at Microsoft.InformationProtection.MIP.Initialize(MipComponent mipComponent, String path)\r\n

有人可以帮忙吗?

你能分享一下你是如何构建路径并在 MipContext 中设置它的吗?这样的事情应该仍然有效。我已经在 MIP SDK 1.7.133 上的 .NET 项目中对此进行了测试。

// Set path to bins folder.
var path = Path.Combine(
            Directory.GetParent(Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath)).FullName,
            Environment.Is64BitProcess ? "bin\x64" : "bin\x86");

// Initialize MIP for File API.  
MIP.Initialize(MipComponent.File, path);