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 (206k 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
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 (190 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 (1.6k 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)
0 votes
1 answer

Good afternoon, I am attempting to create a report to flag Users where the email address in AD does not match the email address in our Payroll system. I am able to use ... ) to grab User objects. Any help or input would be greatly appreciated. Thank you, Keith

asked Aug 12 by kfrench (20 points)
0 votes
1 answer

I'm currently receiving the below error when trying to remove or add actions to a web interface's homepage. I only get the error on this specific dashboard, others are ... the web interface there. I'm currently running Adaxes version 2021.1 if that helps

asked May 21 by richarddewis (220 points)
2,556 questions
2,297 answers
6,126 comments
667,749 users