gong k
gong k

Reputation: 3

Microsoft information protection SDK 1.7.133 - Load library failed issue error

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 ?

Upvotes: 0

Views: 720

Answers (1)

Tom Moser
Tom Moser

Reputation: 786

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);

Upvotes: 0

Related Questions