0 votes

Trying to add a O365 tenant but get an error " Invalid credentials- Could not load file or assembly" with a path to a .dll file or one of its dependencies. This assembly is built by a run time newer then the currently loaded run-time and cannot be loaded.

by (50 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

The thing is that the latest version of the Azure AD Module targets the .NET Framework 4.0 runtime, however Adaxes targets .NETFramework 2.0 runtime. This makes it impossible to load the new version of the Azure AD Module in Adaxes.

To work around the issue:

  1. Download version 8362.1 of the module.
  2. Uninstall the version of the module that you have.
  3. Install version 8362.1.
  4. Important: Restart Softerra Adaxes service.

We are planning to switch Adaxes to a higher .NET Framework runtime version in Adaxes 2017.1.

Related questions

0 votes
1 answer

A service desk user has encountered an error when trying to access shared mailbox delegation. "Send As" is visible however "Full Access" displays red text stating "Failed to get ... error. Any ideas why this is happening and what I can do to rectify it?

asked Nov 11, 2022 by Homelander90 (350 points)
0 votes
1 answer

I am trying to use this script from the script repository: https://www.adaxes.com/script-repository/enable-mfa-with-phone-number-for-a-user-in-microsoft-365-s686.htm I ... if I just didn't install it correctly because Adaxes Powershell doesn't recognize it.

asked Oct 10, 2023 by ocanizales (60 points)
0 votes
1 answer

Trying to create a custom command to run a powershell script, but I keep getting an error saying it can't find the file or path supplied for launching powershell. ... and I can launch powershell from this location using Command Prompt. Am I missing something?

asked Oct 24 by cstaub (100 points)
0 votes
1 answer

We are working with an HR package that will send us a CSV file every 4 hours with a list of users that need to be created, modified or deleted from our environment. The CSV ... change, etc.) Is there a script that can manage all of that on a scheduled basis?

asked Sep 2, 2020 by RayBilyk (240 points)
0 votes
0 answers

I am trying to work out a method to create Drop-Down lists to select printers and printer properties. Using PowerShell I can extract a list of printers and printer properties to either ... or CSV file for my drop-down lists. Any ideas on how to do this? Thanks

asked Sep 17, 2019 by Fixxer (40 points)
3,588 questions
3,277 answers
8,303 comments
548,097 users