At the time of trial we use localhost, everything runs fine. But at the moment after we uploaded the web on web hosting, there are problems on the whole use of the session state, where the problem causing the loss of user data that has been logged in the stored in the session.
For example, we login using a user with admin level. Session suddenly disappear for a while (in a matter of less than 5 minutes). Especially after do a query, like insert, update, and delete.
I try to use all kind session, and the result are:
- In process: same like problem above
- State server: error
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACH INE\SYSTEM\Curr entControlSet\S ervices\aspnet_ state\Parameter s\AllowRemoteCo nnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.
- SQL Server:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The sqlConnectionSt ring attribute or the connection string it refers to cannot contain the connection options 'Database', 'Initial Catalog' or 'AttachDbFileNa me'. In order to allow this, allowCustomSqlD atabase attribute must be set to true and the application needs to be granted unrestricted SqlClientPermis sion. Please check with your administrator if the application does not have this permission.
I also try to use global.asax to improve seassion state duration, but useless.
Why this happen? Is this because server at web hosting's setting? Or my website's mistake? Any body can help and give some solution?
For example, we login using a user with admin level. Session suddenly disappear for a while (in a matter of less than 5 minutes). Especially after do a query, like insert, update, and delete.
I try to use all kind session, and the result are:
- In process: same like problem above
- State server: error
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACH INE\SYSTEM\Curr entControlSet\S ervices\aspnet_ state\Parameter s\AllowRemoteCo nnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.
- SQL Server:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The sqlConnectionSt ring attribute or the connection string it refers to cannot contain the connection options 'Database', 'Initial Catalog' or 'AttachDbFileNa me'. In order to allow this, allowCustomSqlD atabase attribute must be set to true and the application needs to be granted unrestricted SqlClientPermis sion. Please check with your administrator if the application does not have this permission.
I also try to use global.asax to improve seassion state duration, but useless.
Why this happen? Is this because server at web hosting's setting? Or my website's mistake? Any body can help and give some solution?
Comment