0 votes

When I attempt to start the Adaxes service, it immediately stops. This is the error I see in the event viewer:

The service terminated with an error. System.TypeInitializationException: The type initializer for 'Softerra.Adaxes.Utils.Security.ReplicableSecureStorage' threw an exception. ---> System.InvalidCastException: [A]Softerra.Adaxes.Backend.BackendInfoConfigurationSection cannot be cast to [B]Softerra.Adaxes.Backend.BackendInfoConfigurationSection. Type A originates from 'Softerra.Adaxes, Version=3.12.17423.0, Culture=neutral, PublicKeyToken=43a637781bd9a3c2' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Softerra.Adaxes\v4.0_3.12.17423.0__43a637781bd9a3c2\Softerra.Adaxes.dll'. Type B originates from 'Softerra.Adaxes, Version=3.14.19312.0, Culture=neutral, PublicKeyToken=43a637781bd9a3c2' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Softerra.Adaxes\v4.0_3.14.19312.0__43a637781bd9a3c2\Softerra.Adaxes.dll'.
   at Softerra.Adaxes.Backend.BackendInfoConfigurationSection.get_Instance()
   at Softerra.Adaxes.Backend.BackendInfo.get_Server()
   at Softerra.Adaxes.Backend.BackendInfo.#QFc()
   at Softerra.Adaxes.Utils.Security.ReplicableSecureStorage..cctor()
   --- End of inner exception stack trace ---
   at Softerra.Adaxes.Utils.Security.ReplicableSecureStorage.Shutdown()
   at Softerra.Adaxes.Initializer.Shutdown()

Is there anything I can do to fix this?

by (20 points)

1 Answer

0 votes
by (289k points)

Hello,

It looks like the issue occurs because there are extra assemblies left (e.g. after Adaxes upgrade). To remedy the issue, please, try the following:

  1. On the computer where Adaxes service is installed, navigate to folder C:\Windows\Microsoft.Net\assembly\GAC_MSIL.
  2. Delete folders Softerra.Adaxes and Softerra.Adaxes.Adsi.
  3. Run Repair for Softerra Adaxes in Windows Programs and Features.
  4. Start Adaxes service.

Should the issue persist, please, send us (support@adaxes.com) a full copy of the Adaxes Event log. For information on how to view the log, have a look at the following help article: https://www.adaxes.com/help/ServiceEventLog.

Related questions

0 votes
0 answers

Upgraded to the latest adaxes release yesterday and now this morning we are not able to access our self-service portal. We have rebooted our server and verified our adaxes service is successfully connected our domains. Any help would be appreciated, thank you!

asked Mar 14 by dhodgin (40 points)
0 votes
1 answer

I am attempting to run a command using powershell. The command is using Google Apps Manager (GAM). Whenever the command runs and is successful, Powershell reports that it has ... . The issue lies with the software I am using and how it works with Powershell.

asked Nov 12, 2014 by mobosys (290 points)
0 votes
1 answer

Service account has Create / Delete all child object perms for this object and all descendant objects Softerra.Adaxes.Directory.Configuration.AdaxesConfigurationException: Failed ... managedDomain) --- End of inner exception stack trace ---

asked Jun 4 by ZoomGhost (280 points)
+1 vote
1 answer

After installing our second Adaxes service and joining it to the configuration via shared configuration like the install guide said (https://www.adaxes.com/resources/InstNotes. ... ?" I am an administrator and login just fine to our first node.

asked Dec 10, 2019 by mark.it.admin (2.3k points)
0 votes
1 answer

Hi, We've recently started seeing users get 'Unable to connect to nearest Adaxes service' errors when accessing the Adaxes web portal. It's far too vague\random to have an idea ... last night to see if that fixed it, but we have had the issue again today.

asked Dec 13, 2013 by firegoblin (1.6k points)
3,548 questions
3,239 answers
8,232 comments
547,814 users