Accesing Vault with administrative privilegies

Hello all, 

Im facing a strange behaviour, whenever i try to access the method Vault data using this approach.

var mfServerApplication = new MFilesServerApplication();
mfServerApplication.ConnectAdministrativeEx(null);
string vaultGuid = oVault.GetGUID();
Vault vault_ElevatedPrivileges = mfServerApplication.LogInToVaultAdministrativeEx(vaultGuid, false);

This error appears.

Method: Test - System.Runtime.InteropServices.COMException (0x80040001): The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) CoMFilesServerApplication.cpp, 576, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) CoMFilesServerApplication.cpp, 791, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) ServerOperationsHelper.cpp, 317, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 1615, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 1666, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 1794, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 3427, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 3624, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) MFilesSession.cpp, 4513, The parameter is incorrect. (Performing plugin-based authentication is not supported because the caller did not provide the IMFDialogs interface.) (0x80070057) (M-Files 25.5.14829.4 2025-06-10T15:10:41.748Z)

Any suggestions how to fix it