I was using MIP SDK 1.6 before and I initialised MIP by providing Path. It was working fine. I upgraded to 1.7 version and now its failing with the Load library failed error.
{"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
Can anyone please help ?
Can you share how you are building the path and setting it in MipContext? Something like this should still work. I've tested this in a .NET project on MIP SDK 1.7.133.
// 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);