Sign in
Get Help

Clicking on "Single Sign On" in the AuthAnvil Manager throws a "SessionNotFoundException" error


In the AuthAnvil Manager, clicking the button for "Single Sign On" displays the following error when viewing the Manager from directly on the server:

Server Error in '/AuthAnvil/Manager' Application. Exception of type 'ScorpionSoft.IdentityServer.Implementation.Exceptions.SessionNotFoundException' was thrown.



The SSO module is looking for a session under a certain IP address, as defined in the SSO Admin Service endpoint address in the Manager web.config file.  When you log into the Manager, the admin web service in the AuthAnvilSAS web.config file has a different IP that it used to create the session.  This usually means that the base URLs between the 2 files do not match.



Open the file at C:\Program Files\Scorpion Software\AuthAnvil\AuthAnvilSAS\web.config and look for the following lines:

<add key="SASWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/SAS.asmx" />
<add key="SecondarySASWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/SAS.asmx" />
<add key="AdminWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/Admin/Admin.asmx" />


All of these should have the same base URL related to your own server, for example: "" or "CompanyDC01".  Copy this base URL to your clipboard.  Now open the file at C:\Program Files\Scorpion Software\AuthAnvil\AuthAnvilSAS\Manager\web.config and look for the following lines:

Here we have "localhost" as the base URL.  This will resolve to either (IPv4) or ::1 (IPv6) whereas "" might resolve to an external IP. 

<endpoint address="http://localhost/SSO/Services/Admin.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_AdminService" contract="SsoAdminService.AdminService" name="BasicHttpBinding_AdminService"/>     <endpoint address="http://localhost/AuthAnvil/admin/Admin.asmx" binding="basicHttpBinding" bindingConfiguration="AdminSoap" contract="AdminWebService.AdminSoap" name="AdminSoap"/>

Simply update the Manager\web.config file to use the same base URL you have in your AuthAnvilSAS\web.config and they should both be resolving the same way.  In our case, the new lines look like this:

 <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_AdminService" contract="SsoAdminService.AdminService" name="BasicHttpBinding_AdminService"/>     <endpoint address="" binding="basicHttpBinding" bindingConfiguration="AdminSoap" contract="AdminWebService.AdminSoap" name="AdminSoap"/>



AuthAnvil Single Sign On v3.0 or later on AuthAnvil Two Factor Auth v4.6 or later



If you have any questions or need some help, we would be happy to assist. Open a case at or send an email to

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section