Multiple login in external application.
Hi,
Firstly I would like to thank for all the help we had here, specially from Mike and Stuart. We have built the application in C# and ASP.NET which would create a service manager job.
Although the application works properly for a single user, but when multiple users try to connect simultaneously and access the application:
* When a single user connects to the application, it works and they can read the data and create the job.
* When multiple users, simultaneously connect to the application, they can't access the application and can't read the data. But atleast one user is able to successfully read the data.
* But these multiple users keeps trying again and again, finally they can access the data.
I am guessing that maybe the ASP application is not able to connect to the database with multiple users, simultaneously.
For logging in we have used the following code:
Exception we are getting:
This is the trimmed error, if required, I can strip the confidential information and send the whole error code.
Thanks
Firstly I would like to thank for all the help we had here, specially from Mike and Stuart. We have built the application in C# and ASP.NET which would create a service manager job.
Although the application works properly for a single user, but when multiple users try to connect simultaneously and access the application:
* When a single user connects to the application, it works and they can read the data and create the job.
* When multiple users, simultaneously connect to the application, they can't access the application and can't read the data. But atleast one user is able to successfully read the data.
* But these multiple users keeps trying again and again, finally they can access the data.
I am guessing that maybe the ASP application is not able to connect to the database with multiple users, simultaneously.
For logging in we have used the following code:
- Code: Select all
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.Logon("<ServerIP>", "<DatabaseName>", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "adminusername", "adminpassword");
Exception we are getting:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at JiwaFinancials.Jiwa.JiwaODBC.database.Logon(AuthenticationModes AuthenticationMode, String Name, String Password, Boolean& rtnMustChangePassword, DateTime& rtnPasswordLastChangedDateTime)
at JiwaFinancials.Jiwa.JiwaApplication.Manager.Logon(String ServerName, String DatabaseName, AuthenticationModes AuthenticationMode, String JiwaUserName, String JiwaPassword)
This is the trimmed error, if required, I can strip the confidential information and send the whole error code.
Thanks