首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Microsoft信息保护SDK 1.7.133 -加载库出错

Microsoft信息保护SDK 1.7.133 -加载库出错
EN

Stack Overflow用户
提问于 2020-09-25 06:23:34
回答 1查看 434关注 0票数 0

我以前使用MIPSDK1.6,我通过提供路径初始化MIP。一切都很顺利。我升级到1.7版本,现在它失败了,加载库失败了。

C:\inetpub\wwwroot\teststs\bin\x64\mip_dotnet.dll","ExceptionType":"System.ComponentModel.Win32Exception",{“消息”:“发生了错误。”,"ExceptionMessage":"LoadLibrary failed for: Microsoft.InformationProtection.MIP.Initialize(MipComponent“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

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-25 18:11:54

您能分享如何构建路径并在MipContext中设置它吗?像这样的东西应该还能用。我在MIPSDK1.7.133上的一个.NET项目中测试了这一点。

代码语言:javascript
复制
// 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);
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64058901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档