We have a Navision server with 3 licenses. One license should ALWAYS be allocated to be used by the eCommerce website. The other two are for the admin peeps to use.
Unfortuneately, from time to time we get this dreaded error on the website:
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.Services.Protocols.SoapException: Your program license does not permit more users to work simultaneously. Wait until another user has stopped using the program. Contact your system administrator if you want to allow more simultaneous users on your system.
This usually happens when one too many users are trying to use the Navision clients... and this kills the website for certian funcitons until we can get in, sp_who to see who s hogging the sessions and ask them to log off or kill the sessions outright.
We have written code to hook into the Navision login to check the SQL server sp_who to make sure that there aren t too many users logged in and using the Navision database, but this doesn t seem to be working.
I m thinking that Navision stores the currently logged in status somewhere else, and that is where we should be looking, not in the SQL server system tables.
Any ideas? Cheers, Lance