我以前使用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
有人能帮忙吗?
发布于 2020-09-25 18:11:54
您能分享如何构建路径并在MipContext中设置它吗?像这样的东西应该还能用。我在MIPSDK1.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);https://stackoverflow.com/questions/64058901
复制相似问题